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

SAPSCRIPT appears with blank fields

rafael_ferraz
Discoverer
0 Likes
999

Hello Guys,

I am finding a problem with a SAPscript.

Running directly my program Z(SE38) , it select the P.O.tables(EKKO, EKPO,...) correctly, calls my ZSAPSCRIPT correctly and I can preview, It's OK.

It Has made the parameterization and calling via printing preview in ME22N. The sapscript windows appears entirely but no field or variable are displayed. I put a break on my Zprogram and the program is called correctly, all the selections are loaded normally, but it does not show any content, only the fixed ones in the SAPSCRIPT.

3 REPLIES 3
Read only

Former Member
0 Likes
734

It would be difficult for someone to comment actually. For now you need to debug your SAP script. In menu options of Sap Scripts transaction, you can find the debugging enable option.

Regards,

Santosh Verma.

Read only

0 Likes
734

In SAPSCRIPT DEBUG mode, at the very begining in the frist step i can check that variables are filled in a SE38 mode and not filled in ME22N transaction.

Example &W_EKKO-EBELN& 4500000000 (SE38)

&W_EKKO-EBELN& (ME22N)

But not only this field, all other are in the same situation.

Read only

Tamas_Hoznek
Product and Topic Expert
Product and Topic Expert
0 Likes
734

How exactly did you code your Z print program?

The PO print process will provide the output request record in table work area NAST. Based on that, the output program will retrieve the relevant PO data and process the output.

Not knowing how your program is coded makes it hard to comment on your problem, but I suspect there is a disconnect between processing the output request record and your print program. If your program (and starting subroutine) expects the PO number in a different way than using NAST, this won't work.

The best you can do is take a look at the standard print program SAPFM06P, subroutine ENTRY_NEU and model your data retrieval after that.