‎2014 Jun 23 10:16 AM
Hello all,
I am working on QM notification SAP Script have copied standard script and driver program to custom script and driver program. done almost all changes but stuck at one point. see below I have to print batch characteristics on to the form in below format.
I have found out a FM which will give me characteristics values . now I have included the code to get the values in driver program .I am using a text element NOTIF_DETAIL already available in script to print the above table.
so in same block of driver program WRITE_FROM I am calling FM . but I am not able to access the table in layout editorr. I am new to script and I am sure I am doing something wrong may be this is not the way to pass values to script from form.
I want to access output table of FM to access into layout editor so I can print values.
‎2014 Jun 23 10:19 AM
Hello Abhi,
Loop output table of FM and call write_form in loop end loop.
loop GT_CHAR_BATCH into WA_CHAR_BATCH.
call function write_form
Endloop.
Thanks
‎2014 Jun 23 10:19 AM
Hello Abhi,
Loop output table of FM and call write_form in loop end loop.
loop GT_CHAR_BATCH into WA_CHAR_BATCH.
call function write_form
Endloop.
Thanks
‎2014 Jun 23 10:32 AM
Hello abhijeet deshpande,
to use variables in ur SAP-Script layout-editor the variables have to be defined global in your Formular-Programm.
In your layout-editor you can just access to flat data structures. To print a table you have to perform the "write-Form-Routine" for each line - like Always Learner already wrote.
Therefore you normaly define two entry points in your Main window.
1. for the headline-printing
2. for the line-Printing
regards
Stefan Seeburger