03-28-2007 3:52 PM
i need to write the header and item details in dialog programmin on screen which i am gettting in internal table, can any one give me the ex for this.
03-29-2007 12:58 PM
03-29-2007 1:04 PM
hi
name the fields of the screen same as thosa of ur work area(wa_itab-fieldname) . incase ur internal table is with header line give its fieldname like
itaba-fieldname
now in pbo when u will fetch the data into internal table and work area it will directly get displayed on the screen.
feel free to revert back
award all usefull answers
navjot
03-29-2007 1:04 PM
Hi,
design 2 screens in SE51 one for Header and other for Item.
on first screen keep the header fields , as it is a single record, you can fetch the data from the header table into a Structure and can populate this header screen.
Keep some two buttons like ITEM, BACK and EXIT on that first screen and define function codes for the,
Design the 2 nd screen with table control, take the TC from the tools and design the screen with all scroll bars and selection etc
in the PAI of first screen write the code for ITEM button such that depending upon the header key field, select the records from Item table into an internal Table and those internal table fields has to be populated to Table control in the PBO of the 2nd screen. Keep a EXIT and BACK button on this screen such that to move out from this screen.
reward if useful
regards,
ANJI
03-29-2007 1:07 PM
Hi,
There is no way that you can display any data on the selection screen except you use Table Control to display data.....
Other way round what you can do is that.....
call a report program from your dialog program passing the internal table......
to call the report program you can use this command......
SUBMIT <PROGRAM NAME> WITH <PARAMETERS> AND RETURN.
AND RETURN is an extension which is used if you wish to return to the dialog program from the report output.
this report program will display the internal table.......
Thanks and Regards,
Kunjal Patel