Application Development 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: 

Call transaction 'COGI' for a single parameter

Former Member
0 Kudos

Hi all.

Somehow I can't activate COGI transaction via abap code for a spesified parameters (plant and PP order).

Can someone help?

My code:

SET PARAMETER ID 'WRK' FIELD i_werks.

SET PARAMETER ID 'ANR' FIELD i_aufnr.

CALL TRANSACTION 'COGI' AND SKIP FIRST SCREEN.

It open COGI for all parameters (I think it clears the PP order selection field somewhere).

Thanks,

Rebeka

2 REPLIES 2

Former Member
0 Kudos

Hi,

I think it's because only S_WERKS that has memory id. Check the program CORUAFFW. There you can see S_WERKS has memory id WRK. Thus set parameter for this one works. But for S_AUFNR, it is not working. You can try for other parameters.

You might want to use another way to execute COGI. You can use CALL TRANSACTION using BDC, or use SUBMIT.

Regards,

Teddy Kurniawan

Former Member
0 Kudos

aa