Regarding SUBMIT
Hi Friends,
My requirement is as follows.
Ran a query against table BSAK to find any documents for 2007 with withholding tax base not equal to 0.00 and withholding tax code = to blank. No documents found therefore issue #1 has not reoccurred
Ran a query in table LFB1 of all vendors with tax codes on them. Uploaded these vendors to a query in table BSAK and queried for any documents with blank tax codes and withholding tax base = to 0.00. Only document 20374406 found and this is due to the tax code being added to the vendor master after the payment was posted. Issue B above has not reoccurred. Program RFWT0020 can be ran to correct issue A, but we should build an automated program that runs on a quarterly basis to correct documents with this issue
Build a batch job to
a) Query for all 1099-reportable vendors with activity for the appropriate year.
b) Take these vendors and update their corresponding payment documents via program RFWT0020.
Here my question is how to update vendors corresponding payment documents.
the program <b>RFWT0020</b> is update tax code all.
Here i write a select statement on <b>lfb1</b> and fetch vendors with taxcode.
then based on that using the for all entries i fetch the vendors from <b>bsak</b> where taxcode eq blank and tax base eq 0.00.
then after select the vendors from <b>T059q</b> where taxcode = bsak-taxcode and QSC0D = '1099'.
then after i need to update these vendors payment documents via program RFWT0020.
How can do it?
Please send ur valuable response.
Thanks & Regards,
Srinivas.
Hi
Sorry I didn't understand your requirement very well, anyway you can do something like this:
LOOP AT T_LFB1.
LOOP AT T_BSAK WHERE BUKRS = T_LFB1-BUKRS
AND LIFNR = T_LFB1-LIFNR.
SUBMIT RFWT0020
WITH I_BELNR = T_BSAK-BELNR
WITH I_BUKRS = T_LFB1-BUKRS
WITH I_LIFNR = T_LFB1-LIFNR
WITH I_TIME = T_BSAK-BUDAT AND RETURN
ENDLOOP.
ENDLOOP.
In this way you update a single document, u can create a range if you need to update it in massive way, something like:
LOOP AT T_LFB1.
R_BELNR(3) = 'IEQ'.
LOOP AT T_BSAK WHERE BUKRS = T_LFB1-BUKRS
AND LIFNR = T_LFB1-LIFNR.
R_BELNR-LOW = T_BSAK-BELNR.
APPEND R_BELNR.
ENDLOOP.
SUBMIT RFWT0020
WITH I_BELNR IN R_BELNR
WITH I_BUKRS = T_LFB1-BUKRS
WITH I_LIFNR = T_LFB1-LIFNR AND RETURN.
ENDLOOP.
But I think it's safer to update single document, because you can risk to update wrong documents by massive updating.
Max
Similar Messages
-
PRoblem regarding Submit - Open/Transfer/Close Dataset
Hello again, I know I keep asking the same topic (regarding datasets) for the past week. Its been a new topic for me. However, I have a program which I am testing that is shown below.
<b>REPORT ZPROG_COOL7 NO STANDARD PAGE HEADING.
DATA: ITAB_LIST TYPE STANDARD TABLE OF ABAPLIST WITH HEADER LINE.
PARAMETERS: PNAME TYPE SYCPROG. (this does nothing yet ...)
SUBMIT ZPROGRAM EXPORTING LIST TO MEMORY AND RETURN
USING SELECTION-SET 'CEDEX'.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
LISTOBJECT = ITAB_LIST
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
IF SY-SUBRC = 0.
CALL FUNCTION 'WRITE_LIST'
TABLES
LISTOBJECT = ITAB_LIST.
ENDIF.
DATA: LD_FILENAME TYPE LOCALFILE.
DATA: I_MONTH TYPE TABLE OF T247 WITH HEADER LINE.
DATA: IHTML TYPE TABLE OF W3HTML WITH HEADER LINE.
CALL FUNCTION 'WWW_LIST_TO_HTML'
EXPORTING
list_index = sy-lsind
TABLES
HTML = IHTML.
CLEAR IHTML.
LD_FILENAME = '
H******\SAPReport\death.html'.
OPEN DATASET LD_FILENAME FOR OUTPUT IN BINARY MODE.
LOOP AT IHTML.
TRANSFER IHTML TO LD_FILENAME.
ENDLOOP.
CLOSE DATASET LD_FILENAME.
CLEAR: LD_FILENAME.</b>
As you can see it is suposed to get a list from a diffrent program, write the list, and then transfer the list into a directory in the SAP application server. This all works fine on foreground but in Background Proccessing the story is diffrent.
Here is the problem:
If Iam to send a job in background, the report will generate fine if you view the spool list <b>but there HTML file that is supposed to be saved becomes blank.</b> Is there a way to solve this issue? Thank you all take care, and good day.I am concerned that his part does not work in background.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
LISTOBJECT = ITAB_LIST
* EXCEPTIONS
* NOT_FOUND = 1
* OTHERS = 2
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
IF SY-SUBRC = 0.
CALL FUNCTION 'WRITE_LIST'
TABLES
LISTOBJECT = ITAB_LIST.
ENDIF.
DATA: LD_FILENAME TYPE LOCALFILE.
DATA: I_MONTH TYPE TABLE OF T247 WITH HEADER LINE.
DATA: IHTML TYPE TABLE OF W3HTML WITH HEADER LINE.
<b>CALL FUNCTION 'WWW_LIST_TO_HTML'
* EXPORTING
* list_index = sy-lsind
TABLES
HTML = IHTML.
CLEAR IHTML.</b>
LD_FILENAME = '\H******SAPReportdeath.html'.
OPEN DATASET LD_FILENAME FOR OUTPUT IN BINARY MODE.
LOOP AT IHTML.
TRANSFER IHTML TO LD_FILENAME.
ENDLOOP.
CLOSE DATASET LD_FILENAME.
CLEAR: LD_FILENAME.
I ran across this before and I did find a solution, I'll get back.
Regards,
Rich Heilman -
Regarding SUBMIT statement - to process a program in background
Hi All,
I have issue of submitting a program in background and also i need to process the no of records come from program by splitting them by 1000(n).
First of all i have program whose code is like following:
<b>REPORT z_update_material_master.</b>
TYPES: BEGIN OF t_marc,
matnr LIKE marc-matnr, "Material Number
werks LIKE marc-werks, "Plant
beskz LIKE marc-beskz, "Procurement Type
sobsl LIKE marc-sobsl, "Special procurement type
fhori LIKE marc-fhori, "Scheduling Margin Key for Floats
dzeit LIKE marc-dzeit, "In-house production time
plifz LIKE marc-plifz, "Planned delivery time in days
webaz LIKE marc-webaz, "Goods rcpt processing time
pwwrk LIKE t460a-wrk02, "Production plant in planned order
erhor LIKE t436a-erhor, "Opening periodr
zlt TYPE p DECIMALS 3, "Total replenishment lead time
ztlt TYPE p DECIMALS 3, "Total replenishment lead time
wzeit TYPE p DECIMALS 3, "Total replenishment lead time
upd(1) TYPE c, "UPDATE INDICATER
ind TYPE c,
END OF t_marc.
DATA: i_marc TYPE SORTED TABLE OF t_marc INITIAL SIZE 0
WITH HEADER LINE
WITH NON-UNIQUE KEY matnr werks,
i_marc_rpt LIKE i_marc OCCURS 0 WITH HEADER LINE.
DATA: l_plantdata LIKE bapi_marc,
l_headdata LIKE bapimathead,
l_plantdatax LIKE bapi_marcx,
l_tabix LIKE sy-tabix.
CONSTANTS: c_s TYPE c VALUE 'S',
c_x TYPE c VALUE 'X'.
DATA i_temp_bapi_return LIKE bapi_matreturn2
OCCURS 0 WITH HEADER LINE.
DATA BEGIN OF i_temp_zppe0091_01 OCCURS 0.
INCLUDE STRUCTURE zppe0091_01.
DATA: END OF i_temp_zppe0091_01.
DATA: l_tab_nam LIKE rstable-tabname VALUE 'ZPPE0091_01'.
SELECT * FROM zppe0091_01
INTO CORRESPONDING FIELDS OF TABLE i_temp_zppe0091_01.
IF sy-subrc EQ 0.
LOOP AT i_temp_zppe0091_01 WHERE upd = c_x.
l_tabix = sy-tabix.
l_headdata-material = i_temp_zppe0091_01-matnr.
l_plantdata-plant = i_temp_zppe0091_01-werks.
l_plantdata-replentime = i_temp_zppe0091_01-wzeit.
l_plantdatax-replentime = c_x.
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
headdata = l_headdata
plantdata = l_plantdata
plantdatax = l_plantdatax
TABLES
returnmessages = i_temp_bapi_return.
IF NOT i_temp_bapi_return[] IS INITIAL.
READ TABLE i_temp_bapi_return WITH KEY type = c_s.
IF sy-subrc EQ 0.
i_marc_rpt-matnr = i_temp_zppe0091_01-matnr.
i_marc_rpt-werks = i_temp_zppe0091_01-werks.
APPEND i_marc_rpt. CLEAR i_marc_rpt.
ELSE.
i_temp_zppe0091_01-upd = space.
MODIFY i_temp_zppe0091_01 INDEX l_tabix TRANSPORTING upd.
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
Now i want to call this program from another program that is already exists by using <b>SUBMIT</b>
statement in background and i need to process this program by dividing records by <b>1000</b> into seperate session.
how can i do it. Can any body tell me the solution with syntax.
I might get lot of records from above program so i want to split them into diffrent sessions based on number of records(1000).
can any body give me the solution.
Thanks in advance.
Thanks & Regards,
Rayeez.Try implementing the following code. Use the code accordingly...
MOVE 100 TO c_recs_b4_split.
IF num_src_trans > c_recs_b4_split.
target_break = num_src_trans / p_thread.
ELSE.
target_break = num_src_trans + 1.
ENDIF.
wa_subbch = 1.
last_index = 1.
No batch split required if total recrods less than 100
IF num_src_trans < c_recs_b4_split.
CLEAR : range_btch.
REFRESH: range_btch.
IF wa_subbch = p_thread.
target_break = num_src_trans.
ENDIF.
MOVE 'S_SRCTRN' TO range_wa-selname.
MOVE 'S' TO range_wa-kind .
MOVE 'I' TO range_wa-sign .
MOVE 'EQ' TO range_wa-option .
LOOP AT itab_src_trans INTO st_src_trans.
MOVE st_src_trans-src_tran_id TO range_wa-low.
APPEND range_wa TO range_btch.
ENDLOOP.
Step 3 Submit the batch.
v_job_no = v_job_no + 1.
PERFORM submit_tp_jobs.
ELSE.
DO.
Step 1 Collect data for the target count
CLEAR : range_btch.
REFRESH: range_btch.
IF wa_subbch = p_thread.
target_break = num_src_trans.
ENDIF.
MOVE 'S_SRCTRN' TO range_wa-selname.
MOVE 'S' TO range_wa-kind .
MOVE 'I' TO range_wa-sign .
MOVE 'EQ' TO range_wa-option .
IF wa_subbch = p_thread.
target_break = num_src_trans - v_cnt .
ENDIF.
LOOP AT itab_src_trans INTO st_src_trans FROM last_index.
last_index = sy-tabix.
batch_total = batch_total + 1.
IF batch_total <= target_break.
MOVE st_src_trans-src_tran_id TO range_wa-low.
APPEND range_wa TO range_btch.
ELSE.
EXIT.
ENDIF.
v_cnt = v_cnt + 1.
ENDLOOP.
CLEAR batch_total.
Step 2 Submit the batch.
v_job_no = v_job_no + 1.
PERFORM submit_tp_jobs.
ADD 1 TO wa_subbch.
IF wa_subbch > p_thread.
EXIT.
ENDIF.
ENDDO.
ENDIF.
FORM submit_tp_jobs .
DATA : l_jobcount LIKE tbtcjob-jobcount,
l_jobrelease LIKE btch0000-char1,
w_job_flag VALUE 'X',
w_process_mode,
w_user_print_params LIKE pri_params.
l_jobname = p_batch.
CONCATENATE 'TP_' l_jobname '_' v_job_no INTO l_jobname.
CONDENSE l_jobname NO-GAPS.
w_process_mode = ' '.
IF NOT range_btch[] IS INITIAL.
PERFORM create_post_ctrl.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = l_jobname
IMPORTING
jobcount = l_jobcount.
SUBMIT zfi_pc_tran_proc
AND RETURN
WITH p_batch = p_batch
WITH p_jobid = p_jobid
WITH p_mode = w_process_mode
WITH p_subbch = wa_subbch
WITH p_jobq = p_jobid
WITH p_cntlmt = p_cntlmt
WITH p_tpiop = p_iop
WITH SELECTION-TABLE range_btch
USER sy-uname
VIA JOB l_jobname NUMBER l_jobcount
TO SAP-SPOOL
SPOOL PARAMETERS w_user_print_params
WITHOUT SPOOL DYNPRO.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = l_jobcount
jobname = l_jobname
strtimmed = 'X'
IMPORTING
job_was_released = l_jobrelease
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
invalid_target = 8
OTHERS = 9.
ENDIF.
ENDFORM. " submit_tp_jobs
Pl. add the points.... -
Hi,
I am calling a batch job (B) (in back groung) using SUBMIT statement, from a report program (Say A). But I have to Pass some internal tables and few variable to the Batch job (B).
Can someone tell me how I can pass the Internal tables and variables ? Is it possible to pass through SUBMIT statement only? Is there some other than the use of Import-Export statement?
Thanks and regards,
Pankaj Bist.Hi pankaj,
SUBMIT <PROGRAM NAE> = ds_name " Creating batch input session
WITH fl_check = fl_check
WITH os_xon = os_xon
WITH xnonunic = xnonunic
WITH callmode = callmode
WITH max_comm = max_comm
WITH pa_xprot = pa_xprot
WITH anz_mode = anz_mode
WITH update = update
WITH xpop = xpop
WITH xlog = xlog
WITH xinf = xinf AND RETURN.
u can pass the variables like this.
the variables which i have pass to the program all are the selection screen aprameteers of the program .
I hope this will work for you.
Thanks, -
Regarding SUBMIT (report) statement.
Hi experts,
Inside an RFC I am calling a custom report which gives the output in the form of ALV grid. I have used SUBMIT (report) in the RFC for a given set of inputs.
it_sel is an internal table with the selection screen parameters and values.
This is my code.
SUBMIT zmmrep03_r3ent WITH SELECTION-TABLE it_sel
EXPORTING LIST TO MEMORY AND RETURN.
Doing so, I am encountering a problem. When I run the RFC in test frame I am viewing the output which should not happen since i am using <b>Exporting List to Memeory And Return</b>. After that I am getting a runtime exception <b>"NOT FOUND"</b>.
How to resolve this problem.
Regards,
Arul Jothi.Arul,
1. ALV does not export the list to memory.
2. You cannot call a RFC that writes data to the screen.
You need to find a differen way of doing this in your case.
Regards,
Ravi
Note : Please mark the helpful answers -
Query regarding SUBMIT keyword
Hi Guru's,
I am working with module program.
R_auart is declared as ranges in global declarations.
I have screen 500 & 550.
before calling the screen 550 my range variable is upadated with 2 values...(order type) ie.,r_auart
so some coding is done in screen 500 ok,
now what is my query is in screen 500 flow logic,I want to call a report prog with selection screen with the help of submit keyword so as to update the r_auart with some more order types based on the selection criteria and this will be my first statement in flow logic ie., in PAI is it possible to call the report prog....
Regards,
Ravi V GanjiHi,
Report can be submitted from Module pool program using the following syntax,
SUBMIT RFITEMGL
WITH SD_BUKRS EQ GP_BUKRS-LOW SIGN 'I'
WITH SD_SAKNR IN GT_RANGE_SAKNR
WITH PA_STIDA EQ GP_DATE-LOW
WITH X_OPSEL EQ 'X'
VIA SELECTION-SCREEN
EXPORTING LIST TO MEMORY
AND RETURN.
IMPORT IT_POS TO GT_POS FROM MEMORY ID 'ITAB'.
Hope this helps,
Rgds, -
Clarification regarding SUBMIT
Hi,
I would like to know parameters passing from custom prog. through SUBMIT to a target program. variables of target prog must be the same in the program.
or is they can be dinamically passed like subroutines. In target prog. for the same fiels Modif have been used then what is the impact on the passing variables.
Regards
Reddy.hi
good
go through this which ll give your clear idea about the SUBMIT statement.
You can modify the list structure of a called program by using the following additions in the SUBMIT statement:
SUBMIT... [LINE-SIZE width] [LINE-COUNT length].
If the called program contains no such options in the REPORT statement, the system formats the lists of the called program according to the options in the SUBMIT statement. If, on the other hand, the REPORT statement in the called program does specify a list structure, the additions in the SUBMIT statement are ignored.
REPORT demo_programm_submit_line NO STANDARD PAGE HEADING.
DATA: name TYPE sy-title VALUE 'DEMO_PROGRAM_READ_TABLES_1',
wid TYPE i VALUE 80,
len TYPE i VALUE 0.
SET PF-STATUS 'SELECT'.
WRITE: 'Select a report and its list format:',
SKIP.
WRITE: 'Report ', name INPUT ON,
/ 'Line size ', wid INPUT ON,
/ 'Page length', len INPUT ON.
AT USER-COMMAND.
CASE sy-ucomm.
WHEN 'SELE'.
READ LINE: 4 FIELD VALUE name,
5 FIELD VALUE wid,
6 FIELD VALUE len.
SUBMIT (name) LINE-SIZE wid LINE-COUNT len AND RETURN.
ENDCASE.
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dba50d35c111d1829f0000e829fbfe/content.htm
thanks
mrutyun -
Hi All,
I have generated a new selection screen similar to the screen which we will get by executing the transaction S_PL0_09000447. Now according to my requirment this screen is not sufficeient,so i have created a new selection screen.
Now the values entered to my newly created selection screen should be submitted to the standard screen.
I used submit like the way shown bwlow:
SUBMIT RFKQST00 USING SELECTION-SCREEN '1000'
with selection-table rspar.
and i have filled the table rspar.But this didn't work
so can any body help me ASAP.
Regards
SagarHi Baskhar,
REPORT y_form10.
TABLES:bsik,lfa1,with_item,bset,t074u,t001.
DATA:rspar TYPE TABLE OF rsparams,
wa_rspar TYPE rsparams.
SELECTION-SCREEN BEGIN OF BLOCK vendor WITH FRAME TITLE text-001.
SELECT-OPTIONS:s_lifnr FOR lfa1-lifnr ,"OBLIGATORY,
s_bukrs FOR t001-bukrs ."OBLIGATORY.
SELECTION-SCREEN END OF BLOCK vendor.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
PARAMETERS:p_bldat1 LIKE rfpdo-allgedat DEFAULT sy-datum.
SELECT-OPTIONS:s_augdt FOR bsik-augdt.
SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN BEGIN OF BLOCK varia WITH FRAME TITLE text-003.
PARAMETERS: p_varia LIKE rfpdo-kqstvar01 DEFAULT 'CZ'.
SELECTION-SCREEN END OF BLOCK varia.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-004.
Additional parameters
SELECT-OPTIONS: s_belart FOR bsik-blart,
s_belnum FOR bsik-belnr NO DATABASE SELECTION,
s_budat FOR bsik-budat,
s_witht FOR with_item-witht,
s_qstkz FOR bsik-qsskz NO DATABASE SELECTION.
PARAMETERS: p_kaniva LIKE bset-hkont,
p_qssako LIKE bset-hkont .
SELECT-OPTIONS: s_mwskz FOR bset-mwskz .
PARAMETERS: p_unsgeg LIKE rfpdo-kqstxfel6 .
PARAMETERS: p_selec LIKE rfpdo-kqstxfel6 .
SELECT-OPTIONS: s_budat1 FOR bsik-budat NO-EXTENSION
NO DATABASE SELECTION.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK waers WITH FRAME TITLE text-005.
PARAMETERS: p_rechn LIKE rfpdo2-kqstxfl8 ,
p_altcur LIKE t001-waers,
p_condat LIKE syst-datum.
SELECTION-SCREEN END OF BLOCK waers.
SELECTION-SCREEN BEGIN OF BLOCK 2 WITH FRAME TITLE text-006.
Output control
PARAMETERS: p_fomlar LIKE rfpdo-kqsuformrp DEFAULT 'X',
p_test LIKE rfpdo-kqsttestd ,
p_forid LIKE rfpdo1-allgevfo ,
p_adrid LIKE rfpdo1-allgevst ,
p_print LIKE rfpdo-fordpriz ,
p_immea LIKE rfpdo1-allgsofz .
SELECTION-SCREEN ULINE .
PARAMETERS: p_prokol LIKE rfpdo-kqstxfeld DEFAULT 'X',
p_zaehl LIKE rfpdo-kqstcount DEFAULT '1' ,
p_eilpo LIKE rfpdo-kqstxfel1 DEFAULT 'X' ,
p_detail LIKE rfpdo2-wt_detail ,
p_qstsu LIKE rfpdo-kqstxfel2 DEFAULT 'X' ,
p_ktosu LIKE rfpdo-kqstxfel3 DEFAULT 'X' ,
p_fnzsu LIKE rfpdo-kqstxfel8 DEFAULT 'X' ,
p_bkrsu LIKE rfpdo-kqstxfel4 DEFAULT 'X' ,
p_witht LIKE rfpdo2-wt_witht ,
p_lists LIKE rfpdo-kqstxfel7.
SELECTION-SCREEN ULINE.
PARAMETERS: p_dtatab LIKE rfpdo-wedfdta1.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 5(20) text-fdt .
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 10(20) text-zah .
SELECTION-SCREEN POSITION 30.
PARAMETERS: p_augdt RADIOBUTTON GROUP g3 DEFAULT 'X' .
SELECTION-SCREEN COMMENT 32(20) text-cdt
FOR FIELD p_augdt.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN POSITION 30.
PARAMETERS: p_budat RADIOBUTTON GROUP g3.
SELECTION-SCREEN COMMENT 32(20) text-pdt
FOR FIELD p_budat.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN POSITION 30.
PARAMETERS p_bldat RADIOBUTTON GROUP g3 .
SELECTION-SCREEN COMMENT 32(20) text-ddt
FOR FIELD p_bldat.
SELECTION-SCREEN END OF LINE.
Invoice document
SELECTION-SCREEN SKIP.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 10(20) text-inv.
SELECTION-SCREEN POSITION 30.
PARAMETERS: p_invbu RADIOBUTTON GROUP g4 DEFAULT 'X' .
SELECTION-SCREEN COMMENT 32(20) text-pdt
FOR FIELD p_invbu.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN POSITION 30.
PARAMETERS p_invbl RADIOBUTTON GROUP g4 .
SELECTION-SCREEN COMMENT 32(20) text-ddt
FOR FIELD p_invbl.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN ULINE .
PARAMETERS: p_altcty LIKE rfpdo-kqsttitle DEFAULT 'HUNGARY' ,
p_heding LIKE rfpdo-allgline DEFAULT 'HUNGARY',
p_exptab(1) TYPE c NO-DISPLAY. "for call of Rfkqst90
SELECTION-SCREEN END OF BLOCK 2.
MOVE 'S_LIFNR' TO wa_rspar-selname.
MOVE 'S' TO wa_rspar-kind.
MOVE 'I' TO wa_rspar-sign.
MOVE 'EQ' TO wa_rspar-option.
MOVE s_lifnr-low TO wa_rspar-low.
MOVE s_lifnr-high TO wa_rspar-high.
APPEND wa_rspar TO rspar.
MOVE 'S_BUKRS' TO wa_rspar-selname.
MOVE 'S' TO wa_rspar-kind.
MOVE 'I' TO wa_rspar-sign.
MOVE 'EQ' TO wa_rspar-option.
MOVE s_bukrs-low TO wa_rspar-low.
MOVE s_bukrs-high TO wa_rspar-high.
APPEND wa_rspar TO rspar.
MOVE 'P_VARIA' TO wa_rspar-selname.
MOVE 'P' TO wa_rspar-kind.
MOVE 'I' TO wa_rspar-sign.
MOVE 'EQ' TO wa_rspar-option.
MOVE 'CZ' TO wa_rspar-low .
APPEND wa_rspar TO rspar.
MOVE 'P_ALTCTY' TO wa_rspar-selname.
MOVE 'P' TO wa_rspar-kind.
MOVE 'I' TO wa_rspar-sign.
MOVE 'EQ' TO wa_rspar-option.
MOVE 'HUNGARY' TO wa_rspar-low .
APPEND wa_rspar TO rspar.
MOVE 'P_HEDING' TO wa_rspar-selname.
MOVE 'P' TO wa_rspar-kind.
MOVE 'I' TO wa_rspar-sign.
MOVE 'EQ' TO wa_rspar-option.
MOVE 'HUNGARY' TO wa_rspar-low .
APPEND wa_rspar TO rspar.
SUBMIT rfkqst00 USING SELECTION-SCREEN '1000'
WITH SELECTION-TABLE rspar.
I have written like this.I am getting country variant
but iam not getting bukrs and lifnr and please suggest me whats the wrong.
Regards,sagar -
Hi friends,
I am having report and reprt two programs.
Report1 selection screen like:
selection-screen begin of block bi with tile text-001.
s_num1 for zexp,
s_num2 for zexp,
s_num3 for zexp,
end of selection-screen.
I am using report2 and submiting report1 and executing like.
submit report1.......
here problem is i dont want report1 selection-screen but i want to pass s_num1, s_num2, s_num3 skiping selection text-001.
and execute.
can u please provide logic to skip the selection-screen(report1) and pass select-option values and execute.
Thanks in advance
aruna .hi ,
REPORT report1.
DATA text(10) TYPE c.
SELECTION-SCREEN BEGIN OF SCREEN 1100.
SELECT-OPTIONS: selcrit1 FOR text,
selcrit2 FOR text.
SELECTION-SCREEN END OF SCREEN 1100.
Calling program
REPORT report2.
DATA: text(10) TYPE c,
rspar_tab TYPE TABLE OF rsparams,
rspar_line LIKE LINE OF rspar_tab,
range_tab LIKE RANGE OF text,
range_line LIKE LINE OF range_tab.
rspar_line-selname = 'SELCRIT1'.
rspar_line-kind = 'S'.
rspar_line-sign = 'I'.
rspar_line-option = 'EQ'.
rspar_line-low = 'ABAP'.
APPEND rspar_line TO rspar_tab.
range_line-sign = 'E'.
range_line-option = 'EQ'.
range_line-low = 'H'.
APPEND range_line TO range_tab.
range_line-sign = 'E'.
range_line-option = 'EQ'.
range_line-low = 'K'.
APPEND range_line TO range_tab.
SUBMIT report1 USING SELECTION-SCREEN '1100'
WITH SELECTION-TABLE rspar_tab
WITH selcrit2 BETWEEN 'H' AND 'K'
WITH selcrit2 IN range_tab
AND RETURN.
Result
After report1 has been accessed by report2, the selection tables for the selection criteria selcrit1 and selcrit2 in the program accessed contain the following entries:
SIGN OPTION LOW HIGH
selcrit1 I EQ ABAP
selcrit2 I BT H K
selcrit2 E EQ H
selcrit2 E EQ K
regards,
venkat. -
Question regarding submit!!
Hello I have an internal table which contains all the vbeln. I need to submit all these vbeln to the program RV50SBT1 and get the second screen as out put. My code is as follow:
loop at t_vbeln.
submit rv50sbt1 with VSTEL = P_SHIP
with s_vbeln = t_vbeln-vbeln
and return.
endloop.
But I get only one vbeln when I run this..I need to get the all the vbeln ..How do I gt this..Thanks
VickyHI,
see this one
SUBMIT... [VIA SELECTION-SCREEN]
[USING SELECTION-SET <var>]
<b>[WITH <sel> <criterion>]</b>
[WITH FREE SELECTIONS <freesel>]
[WITH SELECTION-TABLE <rspar>].
WITH SELECTION-TABLE <rspar>, dynamic transfer of values
You need an internal table <rspar> with the Dictionary structure RSPARAMS. The table then consists of the following six fields:
SELNAME (type C, length 8) for the name of the selection criterion or parameter
KIND (type C, length 1) for the selection type (S for selection criterion, P for parameter)
SIGN, OPTION, LOW, HIGH as in a normal selection table, except that LOW and HIGH both have type C and length 45.
This table can be filled dynamically in the calling program with all of the required values for the selection screen of the called program. If the name of a selection criterion appears more than once, the system creates a multiple-line selection table for that criterion in the called program. If the name of a parameter appears more than once, the system uses the last value. Note that LOW and HIGH have type C, so that the system executes type conversions to the criteria of the called program. This is important for date fields, for example. Before your program is used in a live context, you should check it using the VIA SELECTION-SCREEN addition.
Except for WITH SELECTION-TABLE, you can use any of the above options several times and in any combination within a SUBMIT statement. In particular, you can use the WITH <sel> option several times for one single criterion <sel>. In the called program, the system appends the corresponding lines to the selection tables used. For parameters, it uses the last value specified. The only combination possible for the WITH SELECTION-TABLE option is USING SELECTION-SET.
<b>Example Program</b>
REPORT demo_program_submit_sel_screen NO STANDARD PAGE HEADING.
DATA: int TYPE i,
rspar TYPE TABLE OF rsparams,
wa_rspar LIKE LINE OF rspar.
RANGES seltab FOR int.
WRITE: 'Select a Selection!',
SKIP.
FORMAT HOTSPOT COLOR 5 INVERSE ON.
WRITE: 'Selection 1',
/ 'Selection 2'.
AT LINE-SELECTION.
CASE sy-lilli.
WHEN 4.
seltab-sign = 'I'. seltab-option = 'BT'.
seltab-low = 1. seltab-high = 5.
APPEND seltab.
<b> SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
WITH paramet eq 'Selection 1'
WITH selecto IN seltab
WITH selecto ne 3
AND RETURN.</b>
Thanks
Sudheer -
Submit report background ------ problem
Hi Friends,
This is regarding submit program in background.
I am calling program like this..
SUBMIT ZXXXX
VIA JOB name NUMBER number
WITH P_MODE EQ 'N'
TO SAP-SPOOL
SPOOL PARAMETERS print_parameters
WITHOUT SPOOL DYNPRO
AND RETURN.
With this Job is creating successfully and status showing finished. But it seems program was not executed. no action has performed. time taken is 0 seconds
the same code I tested in debug mode by commenting
* VIA JOB name NUMBER number
in the above statement.
it is working fine. could you pls help me I want submit my program in background.
for your information. Before submit I am using function module JOB_OPEN.
and after submit I am using JOB_CLOSE.
Pls help me. very urgent.
Thanks in advance.
RaghunathYou can check the job status in SM37. Here is a working example, see what's different in your code:
CONCATENATE 'Z' p_vkorg '_POST_RETURNS' INTO jobname.
CLEAR jobcount.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = jobname
IMPORTING
jobcount = jobcount.
IF sy-subrc <> 0.
ENDIF.
SUBMIT ...
WITH p...
VIA JOB jobname
NUMBER jobcount
USER user_name
AND RETURN.
* Close the job and run immediately
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = jobcount
jobname = jobname
strtimmed = 'X'. " Start immediately -
SRM 4.0 PO Approval Workflow
Hi,
I'm new to SRM and have been tasked with designing a Purchase Order Approval Workflow.
Many Shopping Carts can be used in creating one PO. This workflow will have to only be approved (by the same user that approver the Shopping cart) if the PO line item value is greater that the shopping cart line item value. I.E. The workflow must compare every PO line item to it's respective SC line item and if the value is greater then the original SC approver must approve the PO, therefore we could have 'n' approvers
I see that SAP delivers WS14000145 - N~step approval for PO, would it be advisable to use this workflow and write the logic into the BADI or should I look at creating a new workflow ?
P.S. Thank in advance for your input.
Raveen MoodleyHi Vadim,
I hope you're well. I have question regarding "Submit to grouping" button.
For a mistake, a purchaser clicked that button (Submit to grouping). As a result, he cannot see that position in SoCo.
How can I "undo" this event?
pd: I noticed that field SOURCE_REL_IND = A in table BBP_PDIGP.
Thanks for your help Vadim !!! =)
Kind regards from Mexico,
Diego -
Will iWork / Numbers ever get updated to '12 or '13?
We're still on Numbers '09 and Apple just had another event which did not announce anything for iWork!
Numbers has been updated for iCloud and Retina, but the core functionality has not been touched in year.
The UI needs a total overall. The number of keystrokes required to basic things (e.g., add a border) compared to Excel is horrible. The UI constantly wants to change row size when I'm trying to select a cell. Formula entry with the cursor is very challenging. There is no way to get stock quotes directly into Numbers. The list goes on and on.
Excel for Windows is still so far superior so I have to keep running parallels. This is 2012, time for Apple to produce a decent spreadshet!Hi Boat Guy,
As Peggy mentioned while I was re-reading teh terms of use, Apple does not actively monitor these forums, and Apple employees generally do not post here. Monitoring that is done is almost entirely concerned with compliance with the terms of use.
You might want to take a look at these again, with particular attention to section 2, regarding submissions. There's a link at the bottom of most (all?) windows, or you could simply click this one: Apple Support Communities Terms of Use
Regards,
Barry -
Model change 5 days after purchase
5 days after my wife purchased a basic MacBook (80 GB HD), Apple announced yesterday) that the basic model now has 120 GB HD, a significant change. Would you have expected her to have been made aware of the upcoming change before her purchase? Perhaps that might be naive thinking on my part. Perhaps this is just the way things are with rapid changes in computer marketing...??
H_S,
The "pointing" was my interpretation of "additions" to a listing of "My Posts". I wasn't able to configure this reply to include a link to my personal posts, so I copy/pasted a portion of "My Posts". Under the 1. and 3. posts, there was inserted a LINK to "Using Apple Discussion>>Feedback about Discussions"...the link led me to the instructions relative to this Forum, and by implication (my interpretation), to Discussions in general. My interpretation of the presence of these links was that the Hosts had inserted them as a reminder of the rules of usage. Here's what I found on "My Posts":
+1. Re: Model change 5 days after purchase+
*Using Apple Discussions » Feedback about Discussions,* Feb 29, 2008 7:06 PM
+I am "replying" to my own post for a VERY IMPORTANT reason: It has been pointed out to me (ve...+
+2. Re: Reinstall 10.5.1+
+Mac OS » Mac OS X v10.5 Leopard » Installation and Setup, Feb 29, 2008 4:28 PM+
+You may find your answer here:+
3.
+ Re: Model change 5 days after purchase+
*Using Apple Discussions » Feedback about Discussions,* Feb 29, 2008 3:43 PM
+I certainly agree...thanks for your reply.+
nhuser
The bold lines are the links (on "My Posts" page); the italics are the rest of the entries.
"Terms of Use" has this entry regarding Submissions:
+"Post constructive comments and questions. Unless otherwise noted, your Submission should either be a technical support question or a technical support answer. Constructive feedback about product features is welcome as well. If your Submission contains the phrase “I’m sorry for the rant, but…” you are likely in violation of this policy."+
I appreciate your support. You certainly have much greater experience in Discussions than I have. I agree that my post should have been in a different forum. I would be interested in your read on this. Do you think I was correct in interpreting this as a critique by the Hosts?
Message was edited by: nhuser -
Submit Report (Regarding Background Processing)
Hi Guru's,
I want help regarding Background Processing.
I have developed a program which is running fine in forground but in Background mode no values are comming.
All values are becomig Zero.
Plz help.
*--- Submit Report for 'COGI' (Postprocessing of Error Records from Automatic Goods Movements)
SUBMIT coruaffw USING SELECTION-SCREEN '1000'
WITH r_cumul = 'X'
EXPORTING LIST TO MEMORY
AND RETURN.
*---- Get the List
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = it_list_tab
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc = 0.
*--- Convert to Ascii
CALL FUNCTION 'LIST_TO_ASCI'
TABLES
listobject = it_list_tab
listasci = it_asci_tab
EXCEPTIONS
empty_list = 1
list_index_invalid = 2
OTHERS = 3.
IF sy-subrc <> 0.
* MESSAGE i000 WITH 'Problem in converting LIST to ASCII'.
ENDIF.
DESCRIBE TABLE it_asci_tab LINES w_cogi.
w_cogi = w_cogi - 5.
CALL FUNCTION 'LIST_FREE_MEMORY'
TABLES
listobject = it_list_tab.Hi Arbind,
You have used return you need to add the addition with.Try this way hope it works
SUBMIT zreport EXPORTING LIST TO MEMORY
AND RETURN
WITH P_1 = P_1
WITH P_2 = P_2
WITH P_3 = P_3
WITH S_4 IN S_4
WITH S_5 IN S_5
WITH S_6 IN S_6.
Maybe you are looking for
-
I used the liveupdate 3 to update my vga bios and when it rebooted the computer the videocard wont work now. I flipped the twinbios to the safe mode but nothing happened. When i put my old card in it works fine. Any suggestions?
-
Discoverer Security through Portal
We use Portal for displaying discoverer worksheets. In portal we select the "display to user using Publishers connection". However, when users click analyze on the report it prompts them for a password. Is there any way around this. We don't want use
-
Client attribute returning null value in adf
hi i am using jdev version = 11.1.1.5.0 I have 2inputs and 2buttons in my adf form.One of my input boxes calls a javascript function using client listener,I need ids of remaining 1input and 2buttons and I am using client attribute. All the controls h
-
Podcast page blank, but entries/archive okay?
Help! iWeb has lost its natural mind this morning. I'm using a podcast page as a blog page, dropping in photos and text, because I like the look/layout of that page better in the template I'm using. Normally, it works fine. Today, the main page with
-
Email notification configuration
I am new to email notification,Now I want to the owner of a process to send email notification to someone,what should I set up or configurate to archive this,and I have a mail server that can send and receive email,can anyone tell me how to user the