‎2008 Nov 28 3:16 AM
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
‎2008 Nov 28 3:37 AM
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
‎2008 Nov 28 3:37 AM
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
‎2008 Nov 28 3:51 AM
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
‎2008 Nov 28 4:02 AM
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.
‎2008 Nov 28 4:06 AM
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
‎2008 Nov 28 4:07 AM
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
‎2008 Nov 28 4:12 AM
Hi Gopal
Please take the help of KEY word SUBMIT ... VIA
there is an example also.
Regards
Ramchander Rao.K
‎2008 Nov 28 4:24 AM
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.
‎2008 Nov 28 4:36 AM
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.
‎2008 Nov 28 5:11 AM
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
‎2008 Nov 28 5:45 AM
Dear Gopaludu,
i think you already solved with your problem, then close this thread with answered tag, that will help for repliers.
Thanks.
‎2008 Nov 28 5:00 AM
Hi,
you can also use
submit <program name> with <outputfieldname> EQ '<your value'>
with <outputfieldname> EQ '<your value'>
..
....
...
..
and return.
‎2008 Dec 16 7:14 AM