What are the activities that need to be done for PM year end closing, if any.
There are some step that must be doing before end close year :
- all cost that posting (actual cost ) must be settle
- TECO and close the order that actual cost complete after settle order
- if you use budget function ( investment program) and have order that scheduled in bettwen 2 period year (Dec-jan) you must carry foward the investment program ,and if still have Purchase Requisition outstanding(not convert yet to PO ) you must change the scheduling for that operation.
Operation Long Text
Is it possible to access the long text of an Operation line through ABAP Query / Quick Viewer (SQVI). Where is this info stored ?
I have a client who would like to have a report that would include some of the long text of his Operations.
The long text can be read with the function module Read_text. i think the table is STXH. You would have to develop an ABAP report using the function and the table.
This is the basic guts of a program to do what you want. You'll need to define the from and report but this should get you off the mark at least. Unfortunately the formatting of this code will get lost when I post it.
DATA: W_LINE(3) TYPE N.
SELECT * FROM STXH INTO CORRESPONDING FIELDS OF TABLE W_STXH_TAB
WHERE TDOBJECT IN S_OBJECT
AND TDNAME IN S_TDNAME
AND TDID IN S_TDID.
LOOP AT W_STXH_TAB.
CLEAR W_TEXT_LINE. REFRESH W_TEXT_LINE.
CALL FUNCTION 'READ_TEXT'
ID = W_STXH_TAB-TDID
LANGUAGE = W_STXH_TAB-TDSPRAS
NAME = W_STXH_TAB-TDNAME
OBJECT = W_STXH_TAB-TDOBJECT
LINES = W_TEXT_LINE
ID = 1 LANGUAGE = 2
NAME = 3 NOT_FOUND = 4
OBJECT = 5 REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7 OTHERS = 8.
CHECK SY-SUBRC EQ 0.
LOOP AT W_TEXT_LINE.
ADD 1 TO W_LINE.
MOVE: W_STXH_TAB-TDOBJECT TO OUTPUT_REC-TDOBJECT,
W_STXH_TAB-TDNAME TO OUTPUT_REC-TDNAME,
W_STXH_TAB-TDID TO OUTPUT_REC-TDID,
W_LINE TO OUTPUT_REC-LINE,
W_TEXT_LINE-TDLINE TO OUTPUT_REC-TEXT.
ENDFORM. " MAIN_PROCESS_SECTION
Return to :-
SAP Hints and Tips on Configuration and ABAP/4 Programming