cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Calling Transaction CJ20N

Former Member
0 Kudos
3,847

Hi all,

I am attempting to call trans. CJ20N when user clicks on a particulart WBS elements or project in an ALV report. If the user clicks on WBS element, CJ20N should open with that WBS elements selected. If the user clicks on project, CJ20N should open with that project. Can anyone tell me how i can pass the selected parameter to CJ20N.

regards,

Hamza

Accepted Solutions (0)

Answers (2)

Answers (2)

RaymondGiuseppi
Active Contributor

CJ20N initial module reads the PARAMETER ID 'PSP' for wbs, 'PRO' for project and 'ANR' for network/order. So use SET PARAMETER ID and call transaction CJ20N

Regards,

Raymond

0 Kudos

Call transaction CJ20N (open element PEP) from ALV.

-


I need help about that.

My program runs the CJ20N calling the first screen, then called the search window PEP,

but nothing appears, only the initial screen.

*----


DATA: bdcdata_wa TYPE bdcdata,

bdcdata_tab TYPE TABLE OF bdcdata.

CLEAR bdcdata_wa.

*- initial screen----

bdcdata_wa-program = 'SAPLCNPB_M'.

bdcdata_wa-dynpro = '1000'.

bdcdata_wa-dynbegin = 'X'.

APPEND bdcdata_wa TO bdcdata_tab.

*----- search document PEP -


bdcdata_wa-program = 'SAPLCNPB_W'.

bdcdata_wa-dynpro = '0900'.

bdcdata_wa-dynbegin = 'X'.

APPEND bdcdata_wa TO bdcdata_tab.

*---- parameter -


bdcdata_wa-fnam = 'PRO'.

bdcdata_wa-fval = 'XX.XXXX.X.XXX.XXXX'.

APPEND bdcdata_wa TO bdcdata_tab.

CALL TRANSACTION 'CJ20N' USING bdcdata_tab.

*----


Thanks.

dipalo
Newcomer
0 Kudos
thanks a lot, i can CALL transaction on CJ20N using parameter id 'PRO' = PS_PSP_PNR
Former Member
0 Kudos

Hi,

CJ20N is the project builder and will have nodes that hold the project and WBS elements. Hence when you use CALL transaction on CJ20N, then you get into the main screen and there you need to select the WBS elements again.

Hence instead of CJ20N, Use the below:

CJ2A (Display Project/WBS)

CJ20 (Change Project/WBS)

For above you can execute the transaction without the WBS elements, and then it display all the project with all WBS elements,

If you give the WBS element on the initial screen, then it works like the below transactions and display only the WBS element

CJ03 or CJ13: Display WBS elements

Hope this helps

Regards

Shiva