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

submit report in background and get result into calling program

Former Member
0 Likes
3,486

Hi,

I want to call the standard SAP program from Zprogram to create invoice using Submit. here the code

SUBMIT RV60SBT1  TO SAP-SPOOL
                    SPOOL PARAMETERS print_parameters
                    WITHOUT SPOOL DYNPRO
                    VIA JOB name NUMBER number
                    WITH VKOR1 eq TVKO-VKORG
                    with X_VBELN eq gv_vbeln_so
                    with ALLEA eq 'X'
                    with ALLEL eq ''
                    AND RETURN.

the standard SAP program creates invoice (billing document number). I want to get the billing document number which created using the above statement into the calling program. ......could anyone pls tell me how to do this? ie how to read the billing document number in the calling program.

Regrds

shan

Edited by: Shankar Raju Devadoss on Mar 21, 2011 9:00 AM

1 ACCEPTED SOLUTION
Read only

former_member225631
Active Contributor
0 Likes
1,325

Do some research on FMs LIST_FROM_MEMORY and LIST_TO_ASCI.

Hi,

I want to call the standard SAP program from Zprogram to create invoice using Submit. here the code

SUBMIT RV60SBT1  TO SAP-SPOOL
                    SPOOL PARAMETERS print_parameters
                    WITHOUT SPOOL DYNPRO
                    VIA JOB name NUMBER number
                    WITH VKOR1 eq TVKO-VKORG
                    with X_VBELN eq gv_vbeln_so
                    with ALLEA eq 'X'
                    with ALLEL eq ''
                    AND RETURN.

the standard SAP program creates invoice (billing document number). I want to get the billing document number which created using the above statement into the calling program. ......could anyone pls tell me how to do this? ie how to read the billing document number in the calling program.

Regrds

shan

Edited by: Shankar Raju Devadoss on Mar 21, 2011 9:00 AM

4 REPLIES 4
Read only

former_member225631
Active Contributor
0 Likes
1,326

Do some research on FMs LIST_FROM_MEMORY and LIST_TO_ASCI.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,325

>

> Do some research on FMs LIST_FROM_MEMORY and LIST_TO_ASCI.

I would suggest you better do the research ...

Read only

Former Member
0 Likes
1,325

Try "GET PARAMETER" with the parameter of invoice

Regards

Andrea

Read only

Former Member
0 Likes
1,325

Hi Shankar,

You can try it in both ways.

1. By using the parameter ID VF. (GET PARAMETE ID)

2. Select the invoice numbers from the table VBRK for the current date (SY-DATUM) and

sort it by time and get the latest invoice.

Regards

Hareesh Menon