‎2010 Mar 31 7:14 AM
I AM USING SUBMIT FOR IDOC TRANSACTION WE05 , THE STATEMENT IS BELOW
SUBMIT rseidoc2 WITH SELECTION-TABLE seltab
VIA SELECTION-SCREEN
WITH docnum IN r_doc AND RETURN.
the problem is that when i go directly to weo5 and enter any idoc it is showing me the output but when i go through
submit statement it is giving me error 'NO IDOC FOUND' . please suggest
‎2010 Mar 31 7:32 AM
‎2010 Mar 31 7:32 AM
‎2010 Mar 31 7:33 AM
ELSEIF rs_selfield-fieldname = 'DOCNUM'.
*
READ TABLE lit_final INTO ls_final WITH KEY docnum = rs_selfield-value.
IF sy-subrc = 0. "if succesful
* SET PARAMETER ID 'DCN' FIELD rs_selfield-value.
seltab_wa-selname = 'CREDAT'.
seltab_wa-kind = 'S'.
seltab_wa-sign = 'I'.
seltab_wa-option = 'EQ'.
seltab_wa-low = space.
seltab_wa-high = space.
APPEND seltab_wa TO seltab.
CLEAR seltab_wa.
r_doc-sign = 'I'.
r_doc-option = 'BT'.
r_doc-low = rs_selfield-value.
APPEND r_doc.
CLEAR seltab_wa.
SUBMIT rseidoc2 WITH SELECTION-TABLE seltab
VIA SELECTION-SCREEN
WITH docnum IN r_doc AND RETURN.
*
ENDIF.
‎2010 Mar 31 7:37 AM
Please Try
r_doc-option = 'EQ'. Instead of
r_doc-option = 'BT'.
‎2010 Mar 31 7:39 AM
I am getting the value displayed there in WE05 and also date created option is cleared but when i process it , it is not finding record
‎2010 Mar 31 7:42 AM
Hi,
DOCNUM is of type NUMC . Check if 0's are padded in r_doc.
Regards,
Srini.
‎2010 Mar 31 7:53 AM
[SUBMIT - selscreen_parameters |http://help.sap.com/abapdocu_70/en/ABAPSUBMIT_SELSCREEN_PARAMETERS.htm#!ABAP_ADDITION_3@3@]
‎2010 Mar 31 8:03 AM
Try the below code. Hope r_doc is delcared as of type range_c16.
seltab_wa-selname = 'CREDAT'.
seltab_wa-kind = 'S'.
seltab_wa-sign = 'I'.
seltab_wa-option = 'BT'.
seltab_wa-low = space.
seltab_wa-high = sy-datum.
APPEND seltab_wa TO seltab.
CLEAR seltab_wa.
r_doc-sign = 'I'.
r_doc-option = 'EQ'.
r_doc-low = rs_selfield-value.
APPEND r_doc.
CLEAR seltab_wa.
SUBMIT rseidoc2 WITH SELECTION-TABLE seltab
VIA SELECTION-SCREEN
WITH docnum IN r_doc AND RETURN.
Regards
Vinod
‎2010 Mar 31 8:19 AM
VINOD,
IT IS WORKING NOW BUT CAN U EXPLAIN ME WHY IT WAS NOT WORKING
‎2010 Mar 31 8:24 AM
Hi,
Following changes were done on the posted code.
1) Instead of 'EQ' used 'BT' in seltab_wa-option (Since you are using from date & to date)
2) Passed sy-datum as the seltab_wa-high. (Since data upto system date is to be fetched)
3) Instead of 'BT' used 'EQ' in r_doc-option. (Since single value is passed).
Regards
Vinod
‎2010 Mar 31 7:37 AM
The contents of the parameters or selection tables for the current program can be entered in the table by the function module RS_REFRESH_FROM_SELECTOPTIONS.