Hi Experts,
I have a requirement to add new page to my custom SAP Script with some additional data. Structure "HRPAYCHLAW_OUTPUT" was enhanced with additional fields and those fields were populated using BADI implementation for BADI "HRPAYCHLAW2(HR-CH: Wage Statement 2005).
Method "Print" for class "CL_HRPAYCH_LAW" was enhanced to call newly added page with following code.
CALL FUNCTION 'END_FORM'. "End of printing page BEIBLATT
CALL FUNCTION 'START_FORM' "Start a new page
EXPORTING
Startpage = 'TAXCONLT'. "Direct access to page TAXCONLT for tax confirmation letter.
* lw_output = a_output.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
Window = 'HEADERTL'. " Window to print Header information for TAX confirmation letter.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = 'TAXLETTER'
Window = 'MAINTL'.
CALL FUNCTION 'END_FORM'. "End of printing page TAXCONLT for tax confirmation letter.
Now the issue is availability for Data inside this Form. Structure a_output holding data is not available inside WRITE FORM. Request your inputs how to pass the values to FORM.