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

Select statement weird output

Former Member
0 Likes
540

Hi experts,

I am currently doing SUBMIT program and return, inside the program in debug mode after the select statement from ekko '#' appears in every field value.

But when I execute the program in foreground, the select statement works correctly. I found it weird. any inputs?

sample:

MANDT

                                  ###
EBELN                                  ##########
BUKRS                                  ####
BSTYP                                  #
BSART                                  ####
BSAKZ                                  #
LOEKZ                                  #
STATU                                  #
AEDAT                                  ########
ERNAM                                  ############
PINCR                                  #####
LPONR                                  #####
LIFNR                                  ##########
SPRAS                                  #

Thanks!!!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
501

Hi,

Here is my code, we found that s_ekorg-low has no value but has sign and option so the select statement is always false. Solved.

noob mistake

Thank you all!

rspar_line-selname = 'EN_EBELN-LOW'.

rspar_line-kind    = 'S'.

rspar_line-sign    = 'I'.

rspar_line-option  = 'EQ'.

rspar_line-low     = s_ebeln-low.

APPEND rspar_line TO rspar_tab.

rspar_line-selname = 'EN_EKORG-LOW'.

rspar_line-kind    = 'S'.

rspar_line-sign    = 'I'.

rspar_line-option  = 'EQ'.

rspar_line-low     = s_ekorg-low.

APPEND rspar_line TO rspar_tab.

rspar_line-selname = 'S_EBTYP'.

rspar_line-kind    = 'S'.

rspar_line-sign    = 'I'.

rspar_line-option  = 'EQ'.

rspar_line-low     = p_ebtyp.

APPEND rspar_line TO rspar_tab.

DELETE FROM MEMORY ID id_text.

EXPORT p_flag FROM p_flag TO MEMORY ID id_text.

SUBMIT rm06enbe

WITH SELECTION-TABLE rspar_tab

USING SELECTION-SET 'TEST'

EXPORTING LIST TO MEMORY AND RETURN.

IMPORT   gt_outtab TO gt_outtab

          FROM MEMORY ID id_text.

3 REPLIES 3
Read only

Former Member
0 Likes
501

Can you share your code?

Read only

former_member420878
Active Participant
0 Likes
501

Hi, what submit statement have you written inside your code.

and also you can check this link for submit statement.

http://help.sap.com/abapdocu_70/en/ABAPSUBMIT_VIA_JOB.htm

Thanks.

Read only

Former Member
0 Likes
502

Hi,

Here is my code, we found that s_ekorg-low has no value but has sign and option so the select statement is always false. Solved.

noob mistake

Thank you all!

rspar_line-selname = 'EN_EBELN-LOW'.

rspar_line-kind    = 'S'.

rspar_line-sign    = 'I'.

rspar_line-option  = 'EQ'.

rspar_line-low     = s_ebeln-low.

APPEND rspar_line TO rspar_tab.

rspar_line-selname = 'EN_EKORG-LOW'.

rspar_line-kind    = 'S'.

rspar_line-sign    = 'I'.

rspar_line-option  = 'EQ'.

rspar_line-low     = s_ekorg-low.

APPEND rspar_line TO rspar_tab.

rspar_line-selname = 'S_EBTYP'.

rspar_line-kind    = 'S'.

rspar_line-sign    = 'I'.

rspar_line-option  = 'EQ'.

rspar_line-low     = p_ebtyp.

APPEND rspar_line TO rspar_tab.

DELETE FROM MEMORY ID id_text.

EXPORT p_flag FROM p_flag TO MEMORY ID id_text.

SUBMIT rm06enbe

WITH SELECTION-TABLE rspar_tab

USING SELECTION-SET 'TEST'

EXPORTING LIST TO MEMORY AND RETURN.

IMPORT   gt_outtab TO gt_outtab

          FROM MEMORY ID id_text.