PM Year end closing

Question :

What are the activities that need to be done for PM year end closing, if any.

Answer :

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

Question :

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.

Answer :

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.

FORM MAIN_PROCESS_SECTION.
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'
EXPORTING
ID = W_STXH_TAB-TDID
LANGUAGE = W_STXH_TAB-TDSPRAS
NAME = W_STXH_TAB-TDNAME
OBJECT = W_STXH_TAB-TDOBJECT
TABLES
LINES = W_TEXT_LINE
EXCEPTIONS
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.
CLEAR W_LINE.
LOOP AT W_TEXT_LINE.
ADD 1 TO W_LINE.
CLEAR OUTPUT_REC.
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.
APPEND OUTPUT_REC.
ENDLOOP.

ENDLOOP.

ENDFORM. " MAIN_PROCESS_SECTION

SAP Reference Books :-
SAP PM, CO, FI, PP, SD, MM, PS, QM, SM, HR, BW, APO, Basis,  ABAP/4, Certification, Books

Back to SAP PM :-
SAP PM (Plant Maintenance) Hints and Tips

Return to :-
SAP ABAP/4 Programming, Basis Administration, Configuration Hints and Tips

(c) www.gotothings.com All material on this site is Copyright.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
All product names are trademarks of their respective companies.  The site www.gotothings.com is in no way affiliated with SAP AG.
Any unauthorised copying or mirroring is prohibited.