Skip to Content
0
Former Member
Nov 05, 2012 at 11:00 PM

Call transaction using BDC method (no info or prompt)

90 Views

Hi All

I have a custom report which allows the user to click on a column and this does a call transaction to CO11.

I have a new requirement where the operation sequence number MUST be passed to CO11.

Before I was using Call transaction using parameter ID. However CO11 does not have a parameter ID for the sequence number which refers to structure CORUF-APLFL. I am using the below code to open the transaction which works fine to pass the sequence number.

Now for the problem.

When the user changes the qty in CO11 it should prompt the user and let them know the qty will be recalculated. When called using this BDC call from my custom report it does not and it DOES NOT recalculate. This is quite a big problem for the factory. Is there any way I can fix this or is it a bug in the transaction? I have attached the screenshot that only appears when I run CO11 SEPARATELY.

PERFORM fill_bdctab USING : 'X' 'SAPLCORU' '0100',
' ' 'BDC_CURSOR' 'CORUF-AUFNR',
' ' 'CORUF-AUFNR' wa_data-aufnr,
' ' 'CORUF-VORNR' wa_data-vornr,
' ' 'CORUF-APLFL' wa_data-plnfl,
' ' 'BDC_OKCODE' '/00',
'X' 'SAPLCORU' '0100'.

CALL TRANSACTION 'CO11' USING bdctab MODE 'E' MESSAGES INTO mtab.

Attachments

recalculate.png (4.8 kB)