Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

BAPI_PROCORD_CHECK_MAT_AVAIL affecting screen flow

$
0
0

I have a strange problem with this BAPI, which is called in a loop for several orders. The flow goes like this:

 

1. Program (report type with selection screen) starts, does some processing, and calls dynpro 0100 (which shows an ALV).

 

START-OF-SELECTION.

...

CALL SCREEN 0100.

 

 

2. On a certain PAI action on dynpro 0100, BAPI is called one or several times. Afterwards, dynpro 0200 is called (which shows another ALV).

 

MODULE user_command_0100.

...

CALL FUNCTION 'BAPI_PROCORD_CHECK_MAT_AVAIL'

...

CALL SCREEN 0200.

...

ENDMODULE.

 

 

3. When trying to exit dynpro 0200, LEAVE TO SCREEN 0 does NOT display calling dynpro 0100, but leaves way back to selection screen!

 

MODULE user_command_0200.

...

LEAVE TO SCREEN 0. "This goes to "CALL SCREEN 0200" point, but afterwards instead of triggering 0100 PBO, leaves screen 0100 also

...

ENDMODULE.

 

 

This problems do NOT occur when not calling this BAPI, so I'm 100% sure there's not a problem in the custom program regarding screen flow code.

I have a workaround already, which consists on forcing the next screen immediately after the call screen (with SET SCREEN 0100).

But I'm interested on the CAUSE of this behaviour! I've been unable to find it by debugging the BAPI, neither found any SMP notes on this issue.

Did anyone else experience this or something similar with another BAPI or function?

 

Thanks!


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>