Re Utilize custom container

Advertisement

Hi Gurus,
  Any suggestions are welcome regarding a program having 2 custom controls on same screen. One is used to display an ALV (which is editable) and other is used to display error messages (if any).
Requirement 1:
The application validates data in ALV Data changed event and displays any errors in below message cust control. This is handled by ALV (using Display Protocol of CL_ALV_CHAGED_DATA_PROTOCOL).
Requirement2:
To validate data that is NOT at all changed in Grid, hence I am unable to use the DATA_CHANGED event of ALV. I am validated this data outside ALV however <b>utilizing the same message custom control</b> to display any errors.
Since the 2 requirements dont match as one is managed by ALV and one is custom handled, the generation of messages could be either from req 1 or req 2.
For this purpose I tried calling FREE method separately for both requirements to reconstruct container object each time used to display errors. However it leads to runtime error ALV grid (not sure why) on random clicks.
When I dont use FREE method the messages from previous requirement dont get refresh.
Does anyone has ever tried reusing the same container.
Cheers,
AJ
Message was edited by:
        Ankur Jain

Advertisement

Resolved !
Cheers,
AJ

October 11, 2015

Re Utilize custom container

Hi Gurus,   Any suggestions are welcome regarding a program having 2 custom controls on same screen. One is used to display an ALV (which is editable) and other is used to display error messages (if any). Requirement 1: The application validates data

Simple Tree using custom container

Hi all, I am facing a problem, I am preparing a simple tree in a custom container of using two table such as mchb and mska, from these table i am selecting fields wearks ,matrn ,veblen, quantity , lgort (storage location) and made a internal table, f

ALV resizing Custome container

Hi All, How can i resize Custom controler area based on the number of records i fetch.. Regards AnujWe cannot resize the custom container area dynamically using ABAP code.Try using docking container instead.Read other 2 answers

Should  Standard Toolbar FIND work on an ALV within a custom container ?

I have an ALV in a custom container on a screen. The FIND and FIND NEXT of the ALV toolbar work fine against the grid. Should the FIND and FIND NEXT of the standard toolbar also work against the ALV if they are "activate" in the GUI status? If s

How to have header for CL_SALV_TABLE displayed in custom container?

Hello ABAP Objects Community,  I am trying to write report using CL_SALV_TABLE and using a screen created in SE51 with a custom container control in which to put ALV grid.  However, when I try to put a header on the table, it does not display. In rea

Hoe to shoe the pdf in custom container

Hi Masters,              I have aproblem with pdf. Actually i am generating the spool for smartform. And converting that into pdf , which was stored in local drive, then i am showing that in screen.             Now my requirement is i dont want to st

Handle "Enter" inside Custom Container

Hi all, I am having 4 to 5 fields in my module pool screen and at the same time i am having a custom container wherein, there is editable ALV. Here in editable ALV, i am having an editable field called dealer code.When i enter dealer code in editable

Long text Custom container is moving

Hi Experts I am getting Strange problem I have added Long text container in QM01 transaction using screen Enhancement ( QQMA0001 ) In Transaction this Long text container is moving  when ever i click on Enter Please kindly advise how to avoid this pr

How to attach a tabstrip/subscreen to a splitter control/custom container

HI gurus, Can any one tell me how to add a subscreen/tabstrip to a splitter control in module pool? thanx Sukriti.....https://forums.sdn.sap.com/click.jspa?searchID=21171605&messageID=6879255 similar thread.Read other 3 answers

Create custom declarative component like container

Hi all, I'm using Jdev 12c. I wanna create a custom declarative component like this: container.jsf : <af:panelGroupLayout id="#{attrs.Name}_VIEWPORT" layout="scroll" binding="#{attrs.Binding}"                          inli

Build container   help

Hi, There is transaction to build container   ? i need some example for that . Best RegardsYou mentioned containers, the control framework uses screen containers to embed the control into.  The example are there.  You need now not "create" a con

How to print text bigger in size on whole screen on container?

Hi Friends, My requirement is print text as big as possible on custom container. Can any one guide me how to do this i am getting display but not big as i want i am using class 'CL_DD_DOCUMENT' and method add_text to do this. following code i have wr

ALV Hierarchical Container

Dear experts! How we might have two ALV hierarchical on the same screen? I could not find any solution in a regular basis.. as using Docking or CL_SALV* or CL_ALV*. The only way to have a hierarchical ALV is using REUSEHIERARCALV function or SALV cla

OOABAP - CL_GUI_TOOLBAR functions in a split container

Hi, I have created one custom split container and split it to 2 rows.I'm adding push buttons in both rows(containers) using CREATE OBJECT toolbar_object & CALL METHOD toolbar_object->add_button Could any one please help me out with: (1) when I add

Cannot insert field or paste in existing Local Variable (container of booleans)

Cannot insert field or paste in existing Local Variable (container of booleans)...  TestStand 4.1. This is very strange, especially since I have done it before.  The "paste" and "insert field" selections are greyed out and disabled fro

How to limit the number of rows in the Custom Control box

Hi All, In my Module pool screen I have a Custom Control box for providing some free text as input. Now, there is no limit in the number of rows allowed for this box. But, the requirement is, it should have the maximum number of rows = 99. and each r

Interactive Form for HCM Processes & Forms: Custom Event not firing ?

ECC6 EP7 Adobe Reader: 8.1.2 I am currently developing several Adobe interactive forms as part of an HCM Processes and Forms process. I have started to try to utilize custom form events. Following the documentation, I defined a custom event on the ba

Disable a custom object in dialog ??

hi, i created a custom container and associated a text object to it. i want it to be disabled intially. how to set that ?? i create the object as fol CREATE OBJECT g_editor       EXPORTING         parent                     = g_editor_container      

ALV double-click

Hi, I need to do a program in ABAP OO. My problem is that I need to present 1 ALV in a first screen and then by clicking on one line it should go to another screen where there is another ALV (giving details of the selected line). Can anyone give me s

Pls suggest me to improve the perfomance

Hi all, Pls Suggest me to improve the perfomace of the following query problem : I have a table say cusotmer that contain hierarchy relation customer_id parent_id 1 2 2 3 3 if i input customer_id =1 then i should get all the hierarchy like 2,3, solut