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: 

how to get the last wbs which is displayed in transaction code cj03?

Former Member
0 Kudos

Dear Experts,

I want to get the last wbs which are displayed in transaction code cj03, i have written below program,but i found it is incorrect. because the sort of wbs in cj03 is not equal to table prps. the last wbs in cj03 is not equal to table prps.

who can tell me how to get last wbs which is displayed in cj03?

SELECT

PRPS~STUFE

PRPS~POSID

PROJ~POST1

INTO CORRESPONDING FIELDS OF TABLE WA_PRPS_TEMP FROM PRPS INNER JOIN PROJ ON PROJPSPNR = PRPSPSPHI

WHERE PROJ~PSPID EQ P_PROJECT.

WA_TLINE = LINES( WA_PRPS_TEMP ).

READ TABLE WA_PRPS_TEMP INDEX WA_TLINE.

IF WA_PRPS_TEMP-POSID = P_lastWBS.

P_LAST = 1

endif.

Best Regards,

Merry

2 REPLIES 2

Former Member
0 Kudos

Hi Merry ,

The WBS elements are stored in the table PRPS , so please try using the conversion exit and use the data in internal format then use it in the IF condition.

Check the FM CONVERSION_EXIT_ABPSN_INPUT and CONVERSION_EXIT_ABPSN_OUTPUT

Regards,

Arun

Former Member
0 Kudos

good answer