2005 Aug 02 8:37 AM
Dear All,
I am not very familiar wtih sapscripts. When I look into the codes for the script, I find that the sapscript is able to access data from structures like VBDKR etc using
&VBDKR-VBTYP&.
Where in the sapscript do I specify which stuctures to read from and how are the data populated into the structures?
Best Regards,
Junwen
2005 Aug 02 8:42 AM
Hi,
If something ( structure ) is defined in the global parameters of the printing program, it can be used in sapscript.
Svetlin
Dear All,
I am not very familiar wtih sapscripts. When I look into the codes for the script, I find that the sapscript is able to access data from structures like VBDKR etc using
&VBDKR-VBTYP&.
Where in the sapscript do I specify which stuctures to read from and how are the data populated into the structures?
Best Regards,
Junwen
2005 Aug 02 8:40 AM
Hi,
First call open_form.
You need to loop at the internal table which has the contents.
Write_form.
endloop.
Then close_form
and End_form.
Cheers,
Sam
2005 Aug 02 8:42 AM
Hi,
If something ( structure ) is defined in the global parameters of the printing program, it can be used in sapscript.
Svetlin
2005 Aug 02 8:52 AM
All global data specified in the driver program that launch the SAPscript layout is accessible from it.
To print out the data from the driver program into the main window you need to call FM "WRITE_FORM" specifying the element from the main window to print out that will print the data that contains its variables in the driver program.
I hope this answer your question.
Aubin
2005 Aug 02 9:08 AM
Read more about the following funciton modules in SE37
1. OPEN_FORM
2. WRITE_FORM
3. CLOSE_FORM
You should crack it.
Regards,
Deva.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |