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 STATEMENT PROBLEM

Former Member
0 Likes
1,359

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,280

what are you passing in seltab and r_doc in your statement?

10 REPLIES 10
Read only

Former Member
0 Likes
1,281

what are you passing in seltab and r_doc in your statement?

Read only

0 Likes
1,280
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.
Read only

0 Likes
1,280

Please Try

 r_doc-option  = 'EQ'. 

Instead of

   r_doc-option  = 'BT'.

Read only

0 Likes
1,280

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

Read only

0 Likes
1,280

Hi,

DOCNUM is of type NUMC . Check if 0's are padded in r_doc.

Regards,

Srini.

Read only

0 Likes
1,280

[SUBMIT - selscreen_parameters |http://help.sap.com/abapdocu_70/en/ABAPSUBMIT_SELSCREEN_PARAMETERS.htm#!ABAP_ADDITION_3@3@]

Read only

0 Likes
1,280

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

Read only

0 Likes
1,280

VINOD,

IT IS WORKING NOW BUT CAN U EXPLAIN ME WHY IT WAS NOT WORKING

Read only

0 Likes
1,280

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

Read only

Former Member
0 Likes
1,280

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.