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

SAP Script

Former Member
0 Likes
358

Hi All,

I am calling a SAP Script from FM, in this SAP script there are some variables used the values to these variables are assigned inside FM. but these are not getting displayed. where as when I am calling the FM from report program the values are getting displayed.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
339

Hi,

What you need to do is pass the name of the FM main program in the import parameter itcpo-tdprogram.

Reward if useful.

Thanks,

Shilpa.

3 REPLIES 3
Read only

Former Member
0 Likes
340

Hi,

What you need to do is pass the name of the FM main program in the import parameter itcpo-tdprogram.

Reward if useful.

Thanks,

Shilpa.

Read only

Former Member
0 Likes
339

HAVE YOU USED CONTROL BREAK STATEMENTS.???

Read only

Former Member
0 Likes
339

1. You can print the data by using report program or application(through assingment in NACE)

2. When you want to print some standard SAP application like pur. order , sales order this you will do with NACE and you fire the print from that application transaction like ME21, ME22, VA01 etc.

3. Next is through stand alone transaction or program that is a report program thorugh which you will call the OPEN_FORM, WRITE_FORM, CLOSE_FORM and print the output.

I think in your case, you are print through report program. If you want to write some data from print program to layout you should call WRITE_FORM by passing window and text elements.

even when you are calling sap script from some other wrapper function module also, it calls and prints the data in the form.

But ultimatly you should print the data by using report program or standard sap application method.

Thanks,