Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Doubt in forms

Former Member
0 Likes
791

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
768

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.

6 REPLIES 6
Read only

Former Member
0 Likes
768

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

Read only

Former Member
0 Likes
768

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.

Read only

Former Member
0 Likes
768

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

Read only

0 Likes
768

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....

Read only

0 Likes
768

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

Read only

Former Member
0 Likes
769

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.