Hi Experts,
I am having an issue in my Z-program where I am having a BDC program to create Inspection Point in QE11 Tcode. Once this Inspection Point is created in QE11, we have one more BDC to do the Prod Order Confirmation in CO11 Tcode. We use the Lot Number from QE11 to do the Prod Ord Confirmation in CO11 Tcode.
My issue is that the BDC in QE11 is not working properly when we schedule the Z-program in Background. The Lot number which is generated in QE11 should be passed to CO11 Tcode. If we excute the Program in Foreground or use the JDBG command from SM37 Tcode then the BDC is executing properly.
When we analysed the program we found that the issue is with the BDC used to generate the Inspection Point in QE11. I have modified the CALL TRANSACTION command from
CALL TRANSACTION TCODE
USING BDCDATA
MODE MODE
UPDATE MAJ
MESSAGES INTO ITB_MESSAGE_BDC.
to
CALL TRANSACTION 'QE11'
USING BDCDATA
OPTIONS FROM L_OPT
MESSAGES INTO ITB_MESSAGE_BDC.
Where L_OPT is of type CTU_PARAMS. here I have passed the below parameters into L-OPT.
L_OPT-RACOMMIT = 'X'.
L_OPT-DISMODE = 'E'.
L_OPT-UPDMODE = 'S'.
Even added the WAIT UP TO 20 SECONDS command still the issue is not solved. The LOT Code is getting generated in QE11 BDC program but not getting fetched in CO11. The Lot Code in CO11 field is a Grey Out filed, if I try to update the LOT field( CHARG ) in the CO11 BDC program it is giving error as "No Entry Authorized" to this field.
Kindly suggest.