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 program

Former Member
0 Likes
1,645

Hi,

I am having 10 records one internal table, and i have to call submit program to all of these records, In my submit program i am passing all the internal table records as parameters.

for this i am doing like this.

Looping internal table GI_VBELN into GS_VBELn.

GS_SEL_SET-SELNAME = 'X_VBELN'.

GS_SEL_SET-KIND = 'S'.

GS_SEL_SET-SIGN = 'I'.

GS_SEL_SET-OPTION = 'BT'.

GS_SEL_SET-LOW = GS_VBELN-VBELN.

APPEND GS_SEL_SET TO GI_SEL_SET .

CLEAR GS_SEL_SET.

GS_SEL_SET-SELNAME = 'VKOR1'.

GS_SEL_SET-KIND = 'P'.

GS_SEL_SET-SIGN = 'I'.

GS_SEL_SET-OPTION = 'EQ'.

GS_SEL_SET-LOW = 'OC02'.

APPEND GS_SEL_SET TO GI_SEL_SET .

CLEAR GS_SEL_SET.

GS_SEL_SET-SELNAME = 'ALLEL'.

GS_SEL_SET-KIND = 'P'.

GS_SEL_SET-SIGN = 'I'.

GS_SEL_SET-OPTION = 'EQ'.

GS_SEL_SET-LOW = 'X'.

APPEND GS_SEL_SET TO GI_SEL_SET .

CLEAR GS_SEL_SET.

GS_SEL_SET-SELNAME = 'IMMEDI'.

GS_SEL_SET-KIND = 'P'.

GS_SEL_SET-SIGN = 'I'.

GS_SEL_SET-OPTION = 'EQ'.

GS_SEL_SET-LOW = 'X'.

APPEND GS_SEL_SET TO GI_SEL_SET .

CLEAR GS_SEL_SET.

ENDLOOP.

  • Create Billing # Proforma Invoice

SUBMIT RV60SBAT WITH SELECTION-TABLE GI_SEL_SET

AND RETURN.

But its not working ,can any one help me please(Or just tell me is this correct way of doing,because i am not having right data).

Thanks and regards,

Gopal

Edited by: gopaludu p on Nov 28, 2008 4:22 AM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,542

Hi gopal

Please note if my understanding is correct.

if you want to use these values in the called program you can use

SET PARAMETER and GET PARAMETER

if you want to pass these values to the selection screen of the called program

please go through the KEY word of SUBMIT PROGRAM

Regards

Ramchander Rao.K

12 REPLIES 12
Read only

Former Member
0 Likes
1,543

Hi gopal

Please note if my understanding is correct.

if you want to use these values in the called program you can use

SET PARAMETER and GET PARAMETER

if you want to pass these values to the selection screen of the called program

please go through the KEY word of SUBMIT PROGRAM

Regards

Ramchander Rao.K

Read only

Former Member
0 Likes
1,542

Hi Gopa,

try with this


SUBMIT RV60SBAT USING SELECTION-SCREEN '1000' WITH SELECTION-TABLE GI_SEL_SET

Edited by: Nelson Rodrigo on Nov 27, 2008 10:51 PM

Read only

Former Member
0 Likes
1,542

Use ur SUBMIT with addition - > via selection-screen.

This will show you what parameters are loaded into your selection screen of your calling program. Based on that you can change the input values.

Thanks

Mohan.

Read only

former_member451655
Active Participant
0 Likes
1,542

Hi ,

if you are passing an Internal table , make sure you Passing Below Paramaters also to the Table used for submit.

stable-sign = 'I'.

stable-option = 'BT'.

  • populate some selection condition

READ TABLE it_werks INDEX 10.

stable-low = it_werks-werks.

READ TABLE it_werks INDEX 40.

stable-high = it_werks-werks.

APPEND stable.

*Submit it then

SUBMIT zztest_arun_2

WITH SELECTION-TABLE stable

AND RETURN.

Br,

Dilum

Read only

Former Member
0 Likes
1,542

Thanks all ,

Problem is i have multiple deliveries in internal table ,so how can i pass this multiple values to selection screen parameter S_VBELn of the submit program,Can i pass multiple values on the selection screen of the submit program

Gopal

Read only

0 Likes
1,542

Hi Gopal

Please take the help of KEY word SUBMIT ... VIA

there is an example also.

Regards

Ramchander Rao.K

Read only

Former Member
0 Likes
1,542

Dear Gopaludu,

this code is really worked, it tested my self.


DATA  : IT_DATA_TAB TYPE TABLE OF RSPARAMS.
DATA  : WA_DATA_TAB LIKE LINE OF IT_DATA_TAB.

WA_DATA_TAB-SELNAME = 'SO_SAPID'.
WA_DATA_TAB-KIND    = 'S'.
WA_DATA_TAB-SIGN    = 'I'.
WA_DATA_TAB-OPTION  = 'EQ'.
WA_DATA_TAB-LOW     = '00002533'.
APPEND WA_DATA_TAB to IT_DATA_TAB.

WA_DATA_TAB-SELNAME = 'SO_SAPID'.
WA_DATA_TAB-KIND    = 'S'.
WA_DATA_TAB-SIGN    = 'I'.
WA_DATA_TAB-OPTION  = 'EQ'.
WA_DATA_TAB-LOW     = '00001551'.
APPEND WA_DATA_TAB to IT_DATA_TAB.

SUBMIT Z_PROGRAME_FOR_ATTENDANCE WITH SELECTION-TABLE IT_DATA_TAB AND RETURN.

in this code


WA_DATA_TAB-SELNAME = 'SO_SAPID'.

SO_SAPID is your field name


WA_DATA_TAB-LOW     = '00001551'.

this is what you want to pass

definitely this will work for you, don't forget to say thanks.

Read only

Former Member
0 Likes
1,542

Thanks nelson.

you mean ,

I can do like this

DATA : IT_DATA_TAB TYPE TABLE OF RSPARAMS.

DATA : WA_DATA_TAB LIKE LINE OF IT_DATA_TAB.

LOOP AT ITAB TO WORK AREA.

WA_DATA_TAB-SELNAME = 'SO_SAPID'.

WA_DATA_TAB-KIND = 'S'.

WA_DATA_TAB-SIGN = 'I'.

WA_DATA_TAB-OPTION = 'EQ'.

WA_DATA_TAB-LOW = WORKAREA-VBELN.

APPEND WA_DATA_TAB to IT_DATA_TAB.

ENDLOOP.

SUBMIT Z_PROGRAME_FOR_ATTENDANCE WITH SELECTION-TABLE IT_DATA_TAB AND RETURN.

Read only

0 Likes
1,542

yes Gopaludu,

its true

you can do like that

but dot forget to change your field name


WA_DATA_TAB-SELNAME = 'SO_SAPID'.

'SO_SAPID'. = your screen field name

Read only

0 Likes
1,542

Dear Gopaludu,

i think you already solved with your problem, then close this thread with answered tag, that will help for repliers.

Thanks.

Read only

Former Member
0 Likes
1,542

Hi,

you can also use

submit <program name> with <outputfieldname> EQ '<your value'>

with <outputfieldname> EQ '<your value'>

..

....

...

..

and return.

Read only

Former Member
0 Likes
1,542

answered