Application Development 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: 

Submit Program

Former Member
0 Kudos
337

I am using SUBMIT as below in a Z report:

SUBMIT RFIDYYWT
USING SELECTION-SET VARIANT
WITH SELECTION-TABLE gt_rspar_tab
WITH P_BELNR IN r_belnr and RETURN.

This outputs the report. I however want to modify the internal table before the output.

Any option?

6 REPLIES 6

Former Member
0 Kudos
197

What internal table?

Rob

Former Member
0 Kudos
197

If you are talking about changing the SUBMIT output, you cannot.

One way is, you can EXPORT the list to memory (EXPORTING LIST TO MEMORY), so that the Output is not displayed.

Then read the Output table from memory and make changes to it. FInally you can display this in your report.

Use FM LIST_FROM_MEMORY and LIST_TO_ASCI.

Thanks,

Shambu

raymond_giuseppi
Active Contributor
0 Kudos
197

You could try BAdI WTAXREPORT_MODIFY (method IF_EX_WTAXREPORT_MODIFY->MODIFY_DATA_BEFORE_OUTPUT) or IDWTREP_ADDFUNCINT (method IF_EX_IDWTREP_ADDFUNCINT->ALLDATA_MODIFY_BEFORE_OUTPUT)

Regards,

Raymond

Former Member
0 Kudos
197

I wonder if the auditors would like the results of a standard SAP program being modified after being produced.

Rob

0 Kudos
197

We have a custom report giving a call to thhe standard report RFIDYYWT.

We are in the upgrade mode and as a part of upgrade packs, note 1528860 came along which changed the logic Local Currency.

After the note, the report shows LC as 0(zero) when the document currency is USD and the LC is IDR (Indonesia Rupiah)

There is no problem if the document currency is IDR.

We are trying to find out the solution for this issue and will go with SAP if required.

However since my report is a Zreport (SUMBIT to standard), I was trying to modify the output with some extra logic after getting the results back from standard.

Any pointers wud be appreciated.

Former Member
0 Kudos
197

Hi,

I had a similar requirement where we had to take data from foreground and execute in background for parallel processing to improve performance. Since i wasn't able to modify messages by using submit, 

the approach i took was to create a Z function module. The function module performs the task of standard program along with my requirements, the FM is called to execute in background like :

CALL FUNCTION 'XXXXXXX' in BACKGROUND TASK

and FM's messages/ outputs are merged and displayed.

I feel your requirement seems to be same, hope this helps!!!