WBS long text

Hello.
I need some help for an ABAP report.
How can I find back a WBS long text in table STXH from a WBS in table PRPS? Via the OBJNR? Is there any conversion?
Thanks in advance

Hello,
the way to find it out is that you set a breakpoint into the function module READ_TEXT ( via SE37) and then process a PSP-Element with a long text via CJ12 or CJ13.
The transaction will stop at the breakpoint, an you get the text-id/text-name/ text-object from the input parameters on the function module.
If i try, it says ID = 'LTXT', name = 'E'<PRPS-PSPNR>, object = 'PMS', but for a WBS text there may be other parameters.
If you need the logic in an own programm, you could use the function READ_TEXT instead of selecting texts via STXH/STXL.
Regards Wolfgang

Similar Messages

  • Template for O12* WBS long text

    Is it possible to create a template for O12* WBS  long text. I think SAPscripts can be used. If it can be used can anyone suggest me as how to go about doing it .
    Thanks
    Edited by: Alvaro Tejada Galindo on May 23, 2008 5:33 PM

    Hello,
    the way to find it out is that you set a breakpoint into the function module READ_TEXT ( via SE37) and then process a PSP-Element with a long text via CJ12 or CJ13.
    The transaction will stop at the breakpoint, an you get the text-id/text-name/ text-object from the input parameters on the function module.
    If i try, it says ID = 'LTXT', name = 'E'<PRPS-PSPNR>, object = 'PMS', but for a WBS text there may be other parameters.
    If you need the logic in an own programm, you could use the function READ_TEXT instead of selecting texts via STXH/STXL.
    Regards Wolfgang

  • How to upload long texts to project definitions?

    Hi everyone,
    Does any of you know a program for uploading long texts to project definitions?
    Thanks in advance and best regards.
    Txema.

    Found this post in SDN ABAP forum on the similar issue , check this out it might be helpful
    Project Systems WBS, Long Text Field
    Regards
    Sreenivas

  • How to download and upload long text for project, WBS , Network,

    Hi all,
    I have two isssues.
    1) I am extracting Projects, WBS , Network , Network activity and network activity element from a SAP 4.7 system using bapi's
    BAPI_PROJECTDEF_GETDETAIL
    BAPI_PROJECT_GETINFO
    BAPI_NETWORK_GETINFO
    BAPI_BUS2054_GETDATA
    I am able to get all the details except long text. I want to know how do i extract the long text other than getting it manually by using select_text and Read_text Function module, is there any bapi to achieve this.
    The reason why i am not using Function modules Read_text and Write_text is, object name( TDNAME ) value stored in STXH table for project, wbs and network are the project, wbs and network itself so i dont have any issues with this but the TDname value for activity and activity element are completely different ( Routing number and counter is stored respectively ) which i am not getting as the part of the bapi(BAPI_NETWORK_GETINFO) output.
    2)  I have to upload the extracted Project and it sub object data to ECC 6.0 system , i am able to achieve this by using BAPI's BAPI_PROJECTDET_CREATE, BAPI_PROJECT_MAINTAIN and BAPI_NETWORK_MAINTAIN. I am not able to load the longtext for the same, is there any way to load the long text .
    All help will be greatly appreciated and rewarded.
    Thanks & Regards,
    Rajanidhi Rajasekeran.

    I don't think there is any BAPI to do it.
    We are doing it by read_text & edit_text . required fields for text name can be fetched by following select
      if not e_activity[] is initial.
        select aaufnr aaufpl baplzl bobjnr b~vornr
          into corresponding fields of table t_longtext
          from afko
            as a
        left join afvc
            as b
            on aaufpl = baufpl
           for all entries in  e_activity
           where a~aufnr = e_activity-network
           and a~aufnr is not null.
      endif.
          txtname = wa_longtext-objnr.
          replace c_nv in txtname with sy-mandt.

  • How to upload and download Long text for WBS, Project, Network

    Hi all,
    I have two isssues.
    1) I am extracting Projects, WBS , Network , Network activity and network activity element from a SAP 4.7 system using bapi's
    BAPI_PROJECTDEF_GETDETAIL
    BAPI_PROJECT_GETINFO
    BAPI_NETWORK_GETINFO
    BAPI_BUS2054_GETDATA
    I am able to get all the details except long text. I want to know how do i extract the long text other than getting it manually by using select_text and Read_text Function module, is there any bapi to achieve this.
    The reason why i am not using Function modules Read_text and Write_text is, object name( TDNAME ) value stored in STXH table for project, wbs and network are the project, wbs and network itself so i dont have any issues with this but the TDname value for activity and activity element are completely different ( Routing number and counter is stored respectively ) which i am not getting as the part of the bapi(BAPI_NETWORK_GETINFO) output.
    2)  I have to upload the extracted Project and it sub object data to ECC 6.0 system , i am able to achieve this by using BAPI's BAPI_PROJECTDET_CREATE, BAPI_PROJECT_MAINTAIN and BAPI_NETWORK_MAINTAIN. I am not able to load the longtext for the same, is there any way to load the long text .
    All help will be greatly appreciated and rewarded.
    Thanks & Regards,
    Rajanidhi Rajasekeran.

    One thread in the correct forum is good enough, no need to double post across ABAP forums.  Thanks.
    Regards,
    Rich Heilman

  • Copy long text from PROJ to WBS

    When creating a new project (CJ01) I create new WBS and populate its fields from project automatically.
    I use enhancement and everything is copying ok except the long text.
    I do READ_TEXT and it get long text from project (TEXT_HEADER-TDNAME D99999999)
    Then i do SAVE_TEXT and not getting any error  (TEXT_HEADER-TDNAME E99999999)
    But the long text of WBS is empty.
    How should i copy long text right?
    I traced program and found out that after my enhancement is passed,
    WBS element is not activated and rewrited by initial data from PRPS-POST1
    How should i activate wbs then?
    Thank you for help!

    Hello,
    That code can help you If the text not exist.
    be carreful, that code have not declaration
    Thierry
    CALL FUNCTION 'NUMBER_GET_NEXT'
                EXPORTING
                  nr_range_nr = '01'
                  object      = 'PSTX'
                IMPORTING
                  number      = wl_name.
              ws_prtx-prmandt = sy-mandt.
              ws_prtx-probtyp = 'E'.
              ws_prtx-prpspnr = wv_posnr.
              ws_prtx-prtxtky = wl_name.
              APPEND ws_prtx TO wt_prtx.
              CALL FUNCTION 'CJVB_PRTX_POST'
                TABLES
                  tinsert = wt_prtx
                  tdelete = wt_d_prtx
                  tupdate = wt_u_prtx.
              ws_pstx-psmandt = sy-mandt.
              ws_pstx-pstxtky = wl_name.
              ws_pstx-pstxtar = '03'.
              ws_pstx-pstxtti = 'COMMENTAIRES'.
              ws_pstx-pstxthu = p_uname.
              ws_pstx-pstxthd = sy-datum.
              ws_pstx-pstxtau = p_uname.
              ws_pstx-pstxtad = sy-datum.
              ws_pstx-psformat = ''.
              APPEND ws_pstx TO wt_pstx.
              CALL FUNCTION 'CJVB_PSTX_POST'
                TABLES
                  tdelete = wt_d_pstx
                  tinsert = wt_pstx
                  tupdate = wt_u_pstx.
              IF sy-subrc = 0.
                wl_object = wc_obtxt.
                wl_id = wc_idtxt.
                wl_spras = sy-langu.
                ws_head-tdobject = wl_object.
                ws_head-tdname = wl_name.
                ws_head-tdid = wl_id.
                ws_head-tdspras = wl_spras.
                CALL FUNCTION 'SAVE_TEXT'
                  EXPORTING
                    client          = sy-mandt
                    header          = ws_head
                    insert          = ' '
                    savemode_direct = 'X'
                  TABLES
                    lines           = wt_tline
                  EXCEPTIONS
                    OTHERS          = 1.

  • Short Text and Long Text for WBS

    HI All,
    I am working on Interface Project where I need to enter Short description and long text for a WBS with external text.
    Let me know if any FM Module is exist for same where I can Put this Short Description and Long Text seprately for a WBS Element.
    Regards,
    Atul R. Rajmane

    Hi Atul,
    I think you can enter short description & long text seprately for a WBS while creating entire struture of project in PS only. I don't think other than PS you will be able to enter short & long text for individual WBS.
    Regards,
    Sandeep

  • Long Text at Activity Level in CJ20N

    Hi all,
    So, I have a typical newbie question. But somehow Im unable to find an answer to this query even by searching.
    I need to print the Long Text Tab at the Activity Level (not at Project/WBS/Network level)  in CJ20N using the Read_Text Function Module.
    Just need info on what's the ID, Object, Name etc.
    pk

    Dzed,
    Thanks for that valuable tip. That was exactly what i was looking for.
    But unfortunately, my internal table is not getting updated even though im able to input the right parameters to the Function Module.
    Here's what I've done:
    DATA: BEGIN OF ist_lines OCCURS 0.
    INCLUDE STRUCTURE TLINE.
    DATA: END OF ist_lines.
    select mandt
           aufpl
           aplzl
           ltxa1
           vornr
           objnr
           projn
           from afvc into corresponding fields of table ist_afvc
           for all entries in ist_prps
           where projn = ist_prps-pspnr.
    loop at ist_afvc into wa_afvc.
    concatenate wa_afvc-mandt wa_afvc-aufpl wa_afvc-aplzl into wa_afvc-con3.
    modify ist_afvc from wa_afvc.
    endloop.
    break br_abap1.
    loop at ist_afvc into wa_afvc.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
    *   CLIENT                        = SY-MANDT
        ID                            = 'AVOT'
        LANGUAGE                      = 'E'
        NAME                          = 'WA_AFVC-CON3'
        OBJECT                        = 'AUFK'
    *   ARCHIVE_HANDLE                = 0
    *   LOCAL_CAT                     = ' '
    * IMPORTING
    *   HEADER                        =
      TABLES
        LINES                         = ist_lines
    EXCEPTIONS
       ID                            = 1
       LANGUAGE                      = 2
       NAME                          = 3
       NOT_FOUND                     = 4
       OBJECT                        = 5
       REFERENCE_CHECK               = 6
       WRONG_ACCESS_TO_ARCHIVE       = 7
       OTHERS                        = 8
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endloop.
    Im able to pass the right value for the variable 'WA_AFVC-CON3', but unfortunately the Internal table is not updated.
    I know Im missing something here, but obviously Im too blind to notice that.
    pk

  • Table for Long Texts of MICs in Tasklist

    Dear All
    Can any body tell me from which SAP table i can get the LONG TEXT maintained for MICs in any tasklist.
    Table PLMK only shows wether long text maintained or not, but i want the value in LONG TEXT.
    thanks
    Zeeshan

    This may be helpful.
    SAP stores comments (text fields) in a separate table. STXH is the text
    "header" table (STXD SAPscript text file header). STXH-TDOBJECT =
    'KNA1' will bring back all the customer comment headers. STXH-
    TDNAME='0000010744' is the header record for the comment for customer
    10744.
    It is not always so simple to figure out what the TDOBJECT (object needed by function below - sometimes it is a table name, other times...), TDNAME (name needed by function below - sometimes it is a document number & line item or customer number, other times... ) & TDID (id needed by function below - it is always the long text id). There are several methods that can be used. You can create the long text that you are researching and using, SE16 for table STXH search TDLUSER = to your kerberos principal and TDLDATE = to today's date. This is modify date & user. Alternatively, you can find an existing item with the long text and figure out the date and user who last modified it and use this information in your search. Once you have STXH row for text of interest, use ZCAFTXT to test your research. Project Titles and WBS Titles are a bit more complex.
    Changes to sales contract long text between 3.0F and 4.5B.
    The following code is a function that will return a customer comment.
    form get_comment using cur_kunnr.
      call function 'READ_TEXT'
           exporting
                id                      = '0002'
                language                = sy-langu
                object                  = 'KNA1'
                name                    = cur_kunnr
           importing
                header                  = thead
           tables
                lines                   = tlinetab
           exceptions
                id                      = 1
                language                = 2
                name                    = 3
                not_found               = 4
                object                  = 5
                reference_check         = 6
                wrong_access_to_archive = 7
                others                  = 8.
      if sy-subrc = 0.
        loop at tlinetab.
          write / tlinetab-tdline.
          add 1 to line_cnt.
        endloop.
      endif.
    endform.
    The above subroutine is called with the following code:
    if p_cmnt = 'X'.
       tdname = cur_cust-kunnr.
       perform get_comment using tdname.
    endif.
    These data elements are defined as:
    data: begin of tlinetab occurs 100.    "table to process comments
            include structure tline.
    data: end of tlinetab.
    data: tdname           like thead-tdname.
    Vishal Jonnalwar

  • Display long text of characteristic in Query name

    Hi All,
    I have implemented RRI between my sender and receiver query.
    When user will click on WBS Element in my sender query <b>the receiver query name will be the name of that WBS Element.</b>
    After execution,I am able to see the Short text associated with Characteristic WBS ELement but<b> i want to display Long text of WBS Element in Receiver query name</b>.
    I have tried to implement the same logic as suggested by Bhanu in following blog:
    <u>Variable screen in Web report</u>
    Kindly,suggest the appropriate solution for this issue.
    Thanks in advance.

    Hi All,
    I am still facing the same problem.
    Kindly suggest me the appropriate solution for displaying WBS Element's Long Text in Receiver's Query Name.
    Thanks in advance.
    Best Regards,
    Nilima Rodrigues

  • Need to pull LONG TEXT into Sales Invoice

    Hi All,
    We have a Projects and we maintain some long text for these WBSes of  projects. Now we need to move them to Invoices. Is there any table where in we can store these texts and then we pull in Invoice ? We can also move to Debot Memo request and then to Invoice. How do I store TEXT as its a structure where in it gets stored.
    rgds..Ameet

    Hi,
    Following are some of the tables (PRTX, PSTX, PSTXB, PSTXH) where you can find the references for PS Text in WBS Elements.
    Regards
    Sreekanth

  • How to print long text in scripts

    plzzzzzzzzz answer this qestion
    how to print long text in scripts

    Hi Kranthi,
    You can create Text Id and include that in your script.
    For example:
    /E TEXT
    /: INCLUDE ZTEXT OBJECT TEXT ID ST
    Hope this helps.
    Please reward if useful.
    Thanks,
    Srinivasa

  • Database Table where modifications to message long text are stored (log)

    Hi,
    As per manual correction mentioned in SAP note 1144291,
    we have changed the long text for message XC092 by modification of the long text.
    This note 1144291 is a pre-requisite for SAP Note 1310808.
    After the notes were implemented, it is noticed that message CURTO1055 has incorrect information in its long text. This is because, the variable in the long text are not correctly defined in the long text.
    Both the messages XC-092 and CURTO1-055 are SAP standard.
    The error for CURTO1-055 can be rectified by modification of the long text and maintenance of the correct variables.
    However, my question is:
    Where do we check the log for document modifcation for a message long text.
    I have found the logs relevant to my modification in table DOKHL and DOKIL.
    But in which table do we get all of the foll. data:
    - Message class
    - Message number
    - Modification name
    - Modification created by
    - Modification done on
    - Last changed by
    - Last changed on
    Kindly help. A <removed by moderator> solution would be really helpful.
    Best Regards,
    Smruthi
    Edited by: Thomas Zloch on May 5, 2011 12:07 PM - urgency reduced

    Hi Smruthi,
    The modification changes would be in the SMODILOG table. Please note this is a core basis table and should not be changed, however to best find your changes search under the TRKORR field with the relevant tp request.
    Best regards,
    Derrick Hurley
    Development Workench

  • Can not see long text description of a characteristics in portal

    Hi experts,
    I designed two queries via Query designer and published them to portal but I can not see the the long text description of "Name" attribute belongs to 0BPARTNER characteristics.
    One of the queries shows only the last name of partner in portal while it is showing full name and last name in Bex Analyzer. The other query shows only the key value in both portal and Bex Analyzer.
    I want to see long text description in both queries.
    For an additional information, I'm extracting data from CRM 5.00 to BW 7.00
    What will be the reason for this and how can I solve it?
    Can anyone help me for this issue, it's a kind of emergency situation.

    Hi,
    we have the same problem.
    We want to change <b>only</b> in the screen variable the hierarchy text (from default to long\medium text) but even if there's a possibility to do this, really it doesn't happen anything - it' s possible when you start query, in the selection screen inside every the variable there's a command "User Settings" in which manage what you want to see (I put display custom, as text, medium text).
    I try to do this also in query analizer, selecting variable (hierarchy) and enter in this (user setting), changing in display custom as text - medium text, but even if I save this settings, really doesn't happen anything.
    It seems the system isn't sensitive to this selection...
    By now, if someone has an answer, please write us!
    Thanks in advance,
    Alessandra Mirone

  • Creating a long text using ABAP code.. fm SAVE_TEXT

    When you create an order via IW31 one of the options is to click on the text button and create a long text. I am basically trying to mimic this action from within my ABAP code.
    The text id details are as follows:
    Text Name       500000015000046  which is (5000000 + order number)
    Language        EN
    Text ID            KOPF         Order header text
    Text Object      AUFK       Order text
    If i manually create the text within the transaction i am then able to view and update it via function modules READ_TEXT and SAVE_TEXT. But if the text has not already been created READ_TEXT obviously returns nothing as it does not exist and SAVE_TEXT does not seem to created it!
    Anyone know how i would go about creating this text using ABAP code?
    Hope this make a bit of sense
    Thanks in advance
    Mart

    I have implemented the code as i think it should be. See below, can any see what is wrong. If i add init_text it makes no difference and adding the commit_text just makes it hang
    DATA: IT_TEXTS type standard table of TLINE,
           wa_texts like line of it_texts,
           wa_txtheader type THEAD.
    wa_txtheader-TDID     = 'KOPF'.
    wa_txtheader-TDSPRAS  = 'EN'.
    wa_txtheader-TDNAME   = '500000015000056'.
    wa_txtheader-TDOBJECT = 'AUFK'.
    wa_texts-tdformat = '*'.
    wa_texts-tdline = 'hello'.
    append wa_texts to it_texts.
    wa_texts-tdformat = '*'.
    wa_texts-tdline = 'hello'.
    append wa_texts to it_texts.
      wa_texts-tdformat = '*'.
    wa_texts-tdline = 'hello'.
    append wa_texts to it_texts.
    wa_texts-tdformat = '*'.
    wa_texts-tdline = 'hello'.
    append wa_texts to it_texts.
    wa_texts-tdformat = '*'.
    wa_texts-tdline = 'hello'.
    append wa_texts to it_texts.
      wa_texts-tdformat = '*'.
    wa_texts-tdline = 'hello'.
    append wa_texts to it_texts.
    CALL FUNCTION 'SAVE_TEXT'
      EXPORTING
        CLIENT                = SY-MANDT
        HEADER                = wa_txtheader
        INSERT                = 'X'
       SAVEMODE_DIRECT       = ' '
       OWNER_SPECIFIED       = 'X'
      LOCAL_CAT             = ' '
    IMPORTING
      FUNCTION              =
      NEWHEADER             =
      TABLES
        LINES                 = IT_TEXTS
    EXCEPTIONS
       ID                    = 1
       LANGUAGE              = 2
       NAME                  = 3
       OBJECT                = 4
       OTHERS                = 5
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

Maybe you are looking for

  • Network streams vs shared variables

    I send data from a PXI RT System to users on different Windows computers via Shared Variable and Network Stream.  The user that receives the data via Network Stream writes the data to a disk file (aka DAQ computer).  The users that receive the data v

  • How to attach an Excel document with the Workflow notification?

    Hi, I need to pass an Excel document through workflow process in several notification nodes. Do you have any demonstration example which shows how to implement it? I found some threads like this, but nobody send me the example. I think I need the exa

  • What is happening to my type?

    Something strange going on with some copy typed into text boxes and formatted onto page (around photo; am using 12 pt ITC Officina Sans). I save, publish, view on web-- all looks OK. First time. However, on going back to SOME of the pages (not all--

  • Configuring the appbuilder chart using SQL Statements

    Hi all! I am able to create a chart using .mameta My Chart is able to read in data and display on a chart successfully. What i could not achieve was that the chart doesn't read and display the numbers correctly as shown below. It read by ID instead o

  • Chapter TOCs

    To preface, I'm at best a journeyman with FrameMaker and haven't used it in something like three years. Remember the basic stuff, the finer points and cool things that make FrameMaker wonderful...forget it. Just so you know what you're dealing with (