08-13-2009 4:59 AM
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
08-13-2009 5:09 AM
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
12-07-2009 7:14 AM