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 not working?

Former Member
0 Likes
666

Hi,

I wrote a program that makes a call to another program with the SUBMIT statement and it works great on the Development Enviroment. When we transported it to the Testing Enviroment the SUBMIT call it just doesn't work. SAP version 4.6c

I debug the program in the Testing Enviroment and all the ranges (R_AUFNR, R_ERSA, etc) are completed as they should be, but the execution of this statement always returns the same result in Test: no values.

I executed the program that it is called in the SUBMIT (RIAFRU20 - transaction IW47), and manually filled all the fields with exactly the same values that I pass to it in the code and I have the results that I wanted.

Is there anything that it could be blocking this? Can anybody help me? Thanks.



SUBMIT RIAFRU20 WITH DY_IAR = 'X'       
                WITH DY_ABG = 'X'       
                WITH AUFNR_O IN R_AUFNR 
                WITH ERSDA_C IN R_ERSDA 
                WITH PERNR_C IN R_PERNR 
                WITH ISDD_C IN ini_t    
                WITH IEDD_C IN fin_t    
                AND RETURN.             

2 REPLIES 2
Read only

former_member181966
Active Contributor
0 Likes
440

Huh ....pretty strange ... Hey look at how Std SAP code is calling it

FYI INCLUDE :LCOIHF51

SUBMIT RIAFRU20 WITH DY_IAR = YX

WITH DY_ABG = YX

WITH AUFNR_O = CAUFVD-AUFNR

WITH ERSDA_C IN ERSDA_RANGES

WITH BUDAT_C IN BUDAT_RANGES

*WITH P_OCALL = YX*

WITH RUECK_C = AFVGD-RUECK

AND RETURN.

This parameteris doing the magic : p_ocall NO-DISPLAY. " 'X' => prog called from

Good luck!

Saquib Khan

.

.

Read only

0 Likes
440

Well, finally it was an authorization issue! Thanks anyway!

Regards,