‎2007 May 23 10:19 AM
Hi Gurus
in d below code everything is fine but am not able to get what values should i put ther in the SUBMIT statement.please give me examples of what should be given in the SUBMIT statement especially for BUDAT & SAKNR
with regards
vijay
TABLES:SKB1,bsis.
types: begin of gty_acccoco,
saknr like ska1-saknr,
bukrs like skb1-bukrs,
gvtyp like ska1-gvtyp,
end of gty_acccoco.
tables: b0sg, rfxpo, itemset.
tables: sscrfields.
data: gt_accoco type standard table of gty_acccoco,
gt_accoco_bs type standard table of gty_acccoco,
gd_accoco type gty_acccoco.
selection-screen function key 1.
selection-screen begin of block glaccount with frame title text-w02.
select-options: GLACCT for skb1-saknr modif id wkl no database selection.
selection-screen end of block glaccount.
selection-screen begin of block company with frame title text-w03.
select-options: CODE for skb1-bukrs modif id wkl no database
selection.
selection-screen end of block company.
selection-screen begin of block items with frame title text-007.
selection-screen begin of block status with frame title text-002.
selection-screen begin of line.
parameters x_opsel like itemset-xopsel radiobutton group rad1. .
selection-screen comment 3(20) text-003 for field x_opsel.
selection-screen end of line.
parameters pa_stida like rfpdo-allgstid default sy-datlo.
selection-screen skip.
selection-screen begin of line.
parameters x_clsel like itemset-xclsel radiobutton group rad1.
selection-screen comment 3(25) text-004 for field x_clsel.
selection-screen end of line.
select-options so_augdt for bsis-augdt no database selection.
parameters pa_stid2 like rfpdo-allgstid.
selection-screen skip.
selection-screen begin of line.
parameters x_aisel like itemset-xaisel radiobutton group rad1 DEFAULT 'X'.
selection-screen comment 3(20) text-005 for field x_aisel.
selection-screen end of line.
select-options so_budat for bsis-budat no database selection.
selection-screen end of block status.
selection-screen begin of block type with frame title text-006.
parameters: x_norm like itemset-xnorm as checkbox default 'X',
x_shbv like itemset-xshbv no-display,
x_merk like itemset-xmerk as checkbox,
x_park like itemset-xpark as checkbox,
x_apar like itemset-xarit no-display.
selection-screen end of block type.
selection-screen end of block items.
selection-screen begin of block list with frame title text-001.
selection-screen end of block list.
*select-options so_faedt for it_pos-faedt no-display.
parameters: pa_cent type c no-display.
data: gp_yrper type rwcoom-fiscper.
select-options: so_yrper for gp_yrper no-display.
parameters: pa_inet type c no-display.
START-OF-SELECTION.
SUBMIT RFITEMGL
WITH ALCUR
WITH EXCDT
WITH PA_CENT
WITH PA_GRID
WITH PA_INET
WITH PA_NMAX
WITH PA_STID2
WITH PA_STIDA
WITH PA_VARI
WITH PA_WLBUK
WITH PA_WLSAK
WITH SD_APOPT
WITH SD_AUGDT
WITH SD_BSCHL
WITH SD_BUDAT
WITH SD_BUKRS
WITH SD_FILES
WITH SD_GSBER
WITH SD_GSB_B
WITH SD_IARCH
WITH SD_KOSTL
WITH SD_KTOPL
WITH SD_MEMOR
WITH SD_NOAUT
WITH SD_NOOAP
WITH SD_OBJEC
WITH SD_OPOPT
WITH SD_SAKNR
WITH SD_SHKZG
WITH SD_STIDA
WITH SD_TPC
WITH SD_USEAR
WITH SD_USEAS
WITH SD_USEDB
WITH SD_VBUND
WITH SD_WERKS
WITH SD_ZUONR
WITH SO_ASKTO
WITH SO_AUGDT
WITH SO_BUDAT
WITH SO_BWWR2
WITH SO_BWWR3
WITH SO_BWWRT
WITH SO_DMBE2
WITH SO_DMBE3
WITH SO_DMSHB
WITH SO_FAEDT
WITH SO_GSBER
WITH SO_HWAE2
WITH SO_HWAE3
WITH SO_HWAER
WITH SO_JAMON
WITH SO_KKBWR
WITH SO_KOART
WITH SO_KURSE
WITH SO_QBSHB
WITH SO_QSFBT
WITH SO_QSSHB
WITH SO_SHKZG
WITH SO_SKFBT
WITH SO_SKNTO
WITH SO_VERZ1
WITH SO_VERZN
WITH SO_WAERS
WITH SO_WLBUK
WITH SO_WLSAK
WITH SO_WRSHB
WITH SO_WSKTO
WITH SO_YRPER
WITH SO_ZALDT
WITH SO_ZINSZ
WITH XX_BUKRS
WITH XX_KTOPL
WITH X_AISEL
WITH X_APAR
WITH X_CLSEL.
WITH X_MERK
WITH X_NORM
WITH X_OPSEL
WITH X_PARK
WITH X_SHBV
‎2007 May 23 10:24 AM
Hi Vijay,
write like this:
SUBMIT (L_REPID)
WITH SO_1111 IN SO_1111
WITH SO_2222 IN SO_2222
WITH SO_3333 IN SO_3333
.............
..............
USER SY-UNAME VIA JOB W_JOBNAME NUMBER W_JOB_COUNT
AND RETURN.
( w_jobname = sy-repid)
Hope it works.
Reward helpful answers.
Regards,
Siddhesh Sanghvi.
‎2007 May 23 10:25 AM
Hi
see this
Use EQ for parameter and IN for select options
(check in the program selection screen for the declaration of s_budat and s_saknr or something else and use accordingly)
SUBMIT RFITEMGL
WITH s_budat IN sd_budat
WITH s_saknr in sd_saknr
AND RETURN
USER sy-uname
VIA JOB jobname
NUMBER jobcount
TO SAP-SPOOL
SPOOL PARAMETERS print_params
ARCHIVE PARAMETERS arc_params
WITHOUT SPOOL DYNPRO.
Reward points if useful
Regards
Anji
‎2007 May 23 10:35 AM
hi anji
but am getting error for the SAKNR fields...please help
vijay
‎2007 May 23 10:40 AM
Hi Vijay Krishna,
Check out this code.
SUBMIT zrpcprru0_376
WITH pnppernr-low = w_0001-pernr
WITH wtype2 ='X'
WITH s_lgart = '/5UT'
WITH p_ctd = 'X'
WITH p_ytd = 'X'
WITH p_tls = 'X'
WITH piptimr3 = 'X'
WITH pnpbegda = l_date2
WITH pnpendda = p_endda
AND RETURN.
IMPORT ws_wtype5ut FROM MEMORY ID 'ABCD'.
ws_wtype5ut_main = ws_wtype5ut.
Let me know if any queries...
Award points if it is useful...
Regards,
Naveen.
‎2007 May 23 10:41 AM
hi naveen
can u explain me wit repsect to the code i posted
vijay
‎2007 May 23 10:48 AM