06-02-2015 6:17 PM
We are posting incoming invoices through bapi incoming invoice create which is called through RFC. But we have started getting dump DYNPRO_SEND_IN_BACKGROUND how can I know this pop up & alos how can avoid such kind of error. I have attached dump.
Thanks,
Kiran
06-02-2015 6:28 PM
Hi
the problem is a dynpro is called while your program working in background: it's not allowed to call a dynpro in background mode
You should skip that call:
133| IF NOT ls_textheader-name IS INITIAL. |
| 134| rm06e-ltex1 = text-004. |
| 135| ELSE. |
| 136| rm06e-ltex1 = text-006. |
| 137| ENDIF. |
| 138| CALL SCREEN 500 STARTING AT 14 10 |
| 139| ENDING AT 60 15. |
|>>>>>| IF overwrite = ' '. |
| 141| EXIT. |
| 142| ENDIF. |
Now that screen is called by fm ME_GET_REQUISITION_TEXT_EXT, so you should check why it calls the dynpro, I suppose you're using the BAPI BAPI_INCOMINGINVOICE_CREATE and so that screen shouldn't be called, there's the following check:
*---- Popup-Abfrage: Soll der Text überschrieben werden? --------------*
IF eban_entries GT 0 AND sy-binpt IS INITIAL
AND i_bapi_call IS INITIAL. "628832
*---- 1. Zeile: 'Bestellanforderung ... ' -----------------------------*
So the screen shouldn't be called if a BAPI calls ME_GET_REQUISITION_TEXT_EXT,
Try to check fm ME_GET_REQUISITION_TEXT_EXT; is there the red abap code?
Max
06-02-2015 6:38 PM
given red code is available in function module ME_GET_REQUISITION_TEXT_EXT
06-02-2015 6:42 PM
Hi
so you need to check who calls ME_GET_REQUISITION_TEXT_EXT:
try to insert a breakpoint and run your program online: that screen should be called online too
Max
06-02-2015 7:03 PM
Along with checking the i_bapi_call, its worthwhile to check the value for "sy-binpt". If the process is run in background, this should be set to X which should stop the dynpro from being called.
Thanks,
Vikram.M
06-02-2015 7:20 PM
Hi
SY.BATCH is set to X if a process is in background
SY-BINPT is set to X if the program is submitted by batchinput process (so it doesnt' mean a background process)
Max
06-02-2015 7:24 PM