Skip to Content
0
Former Member
Aug 13, 2009 at 03:59 AM

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

53 Views

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