2006 Sep 25 7:30 AM
Hi all,
I have scenario like I have a form (either SMARTFORM or SAPSCRIPT)and driver program configured in NACE transaction. It is working fine. BUt now I have a ZTABLE and have 2 fields in it. Now I need to retreive these ZTABLE fields in the form.
How do I link this ZTABLE fields to retrieve this values in the form?
Can I write just &ZTABLE-FIELDNAME& or is there anything else?????
Thanks in advance
Points will be rewarded
2006 Sep 25 8:06 AM
First U define itab like Ztable in forminterface->table options. Than define work area, and internal table in global data. U move data form itab to urs work area and internal table in coding part of of global data. then u can use ztable field in everywhere in smartforms.
u must pass ztable in smartforms in urs program also.
I think it can help u.
fill a internal table with the values from the Z Table and pass it to the smart form function which is been called in the report via the TABLES parameter.Now the internal table will be available in your smart form.
2006 Sep 25 7:32 AM
this is for only sapscript...u have to use<b> perform</b> statement for that.
http://www.sap-basis-abap.com//abap/how-to-call-a-subroutine-form-sapscripts.htm
2006 Sep 25 7:32 AM
fill a internal table with the values from the Z Table and pass it to the smart form function which is been called in the report via the TABLES parameter.Now the internal table will be available in your smart form.
2006 Sep 25 7:36 AM
Hello,
Is ur ZTABLE already used in the Driver program or it is new once created and u want add the table now.
If u want add new to able to standard driver program it is not posible,if u want to add the ztable to a driver program created by u then it is posible.
In the second case u have to select the fields into a internal table and pass them in script.Directly u cannot use the ztable in the script.
Hope I am clear,let me know for other querys.
Reagards
2006 Sep 25 7:53 AM
Yes you are right.It is a new ZTABLE and not mention in the driver program.So in this case , I have to use a subroutine.
kindly confirm it....
2006 Sep 25 11:16 AM
Hello,
Ya u are right u have to define routines here in this case.
Check it out and let me know if u face any problem.
Regards
2006 Sep 25 8:06 AM
First U define itab like Ztable in forminterface->table options. Than define work area, and internal table in global data. U move data form itab to urs work area and internal table in coding part of of global data. then u can use ztable field in everywhere in smartforms.
u must pass ztable in smartforms in urs program also.
I think it can help u.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |