How to read long text of WBS Element in CJ20N:
1. If the object is a project , then go to table PROJ , pass the Project definition ( PROJ-PSPNR) and get the Object Number of the same. Now from the Object number remove the First Twio characters. Example - if your PROJ-OBJNR is like
PR00000180 then take 00000180. then concatenate 'D' with it. So your TDNAME will be D00000180. the reason for making it D is here Project object types = Project definition. ( refer to Domain PS_OBTYP).
2. If it is a WBS element, then start from table PRPS. Derive the Object number ( PRPS-OBJNR). Remove the First Two characters in the same way. But in this case you will have to concatenate 'E'. E is for WBS element. ( refer to Domain PS_OBTYP).
You can verify this by puttiing a Break-point on READ_TEXT. When you try to view the Long text via CJ20N, it will stop here and u ll be able to validate the name.
Call Function module READ_TEXT and use -
TDID = 'LTXT'
OBJECT = 'PMS'
NAME - as described above,
You will get the Text lines.......
1. If the object is a project , then go to table PROJ , pass the Project definition ( PROJ-PSPNR) and get the Object Number of the same. Now from the Object number remove the First Twio characters. Example - if your PROJ-OBJNR is like
PR00000180 then take 00000180. then concatenate 'D' with it. So your TDNAME will be D00000180. the reason for making it D is here Project object types = Project definition. ( refer to Domain PS_OBTYP).
2. If it is a WBS element, then start from table PRPS. Derive the Object number ( PRPS-OBJNR). Remove the First Two characters in the same way. But in this case you will have to concatenate 'E'. E is for WBS element. ( refer to Domain PS_OBTYP).
You can verify this by puttiing a Break-point on READ_TEXT. When you try to view the Long text via CJ20N, it will stop here and u ll be able to validate the name.
Call Function module READ_TEXT and use -
TDID = 'LTXT'
OBJECT = 'PMS'
NAME - as described above,
You will get the Text lines.......
Comments
Post a Comment
If it resolved your issue, appreciate it in comments. If not, write it in comments, we will come back with better solution.