cancel
Showing results for 
Search instead for 
Did you mean: 

Is there any program required to pass data to Form from Va02 transaction

raj_kumar86
Participant
0 Kudos

Hi Guys,

we have requirement to develop script for Va02 Transaction. For this i Developed layout by copying standard layout and changed some windows in custom layout for extra fields i write logic in forms i called that external subroutines in layout.

functional consultant configured in nace print program is RVADOR01 and form is Zlayout( what i developed).

is there Any program required to pass data to layout (in includes or some where) or any events required to pass data?

Thanks In advance for your help

Regards,

Raj

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Raj,

The driver Program send the data neede by the script.

In case your have added some new fields then you can call a Program from script and retrieve the data that is needed by you. follow the code below.


/: PERFORM fetch_data IN PROGRAM ZREPORT.
/:USING &INPUT_VALUES&.
/:CHANGING &OUTPUT_VALUES&.
/:ENDPERFORM.

-


Now Create a Report with name ZREPORT.


REPORT zreport.

FORM fetch_data TABLES in_tab STRUCTURE itcsy
                                        out_tab STRUCTURE itcsy.

<Here you can fire select query using the dta of IT_TAB and populate OUT_TAB.
OUT_TAB fields can now be used in SCRIPT>

ENDFORM.

Hope this helps. Please revert back incase you face any other problem.

Cheers,

Suvendu

Answers (2)

Answers (2)

raj_kumar86
Participant
0 Kudos

Thanks & Regards

Raj

Former Member
0 Kudos

Hi,

If you have not added any windows to that existing script it is not needed to call WRITE_FORM in print program. Otherwise it is needed to call WRITE_FORM. For subroutine program it is important to save that program in Script transaport request. Any other program is not needed.