This website is not affiliated with, sponsored by, or approved by SAP AG.

Global Value

Development SAPscript/ Smartforms

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

Global Value

Postby egementuran » Tue Sep 13, 2011 3:35 am

Hi people.

Im student and have restricted access to the SAP system im using.

I will concoct an example that will reflect to my problem.

* I have a SAPScript form with 2 windows: Main and Header.
* The report is SAP standard and i may not change it and create a Z.... REPORT

Since the "main" is always done before anything else, therefore this gives some problems

The Report first call the function to write the header and after that the main.

Imagine. I have a internal table called itab with work area wa_itab. I want the first index to be print out in header and the rest in main.

I have this code in the header.
/: DEFINE &MYSYMB& := &wa_itab-mname&
HH &MYSYMB&
When the report performs the CALL FUNCTION 'WRITE_FORM' for the header, the value of wa_itab-mname is the value of index 1, but still i get the wa_itab-mname value of the last index in table 'itab'

the code : /: define &mysymnb& := &wa_itab-mname& is obviously a reference to that field.

Can anyone help me print out the value from 'itab' , at the time the writeform function for the header is called? And not at the time the writeform function for the main is ended.

Best Regards

Tutan
egementuran
 
Posts: 4
Joined: Thu May 26, 2011 10:19 am

Return to SAPscript/Smartforms

Who is online

Users browsing this forum: No registered users and 2 guests





loading...


This website is not affiliated with, sponsored by, or approved by SAP AG.