Problem filling item text in BAPI_PR_CREATE

Hello guys,
    I am using the bapi BAPI_PR_CREATE. I am having problems on filling up the text in the item level. I used the textID 'B04' the text will supposed to be in the 'material PO text' text field but it instead was placed in the 'item text' field.
How do I go about it?
Need you expert advice on this.
Thanks,
Jeffrey

Hello Ravikumar,
    Yes I did. Under the text tab of the current line item, i clicked on the <b>Material PO text</b> and choose <i>SAPscript editor</i> on the drop down list and went to the text editor. I choose goto-->header and there I found its corresponding text id which is <b>B04</b>. I wonder why it is still placed in the <b>item text</b> field (which is text id - 'B01')?
Another thing. What's the use of <b>TEXT_FORM</b> in table <b>PRITEMTEXT</b>?
Hope you could help me on this.
I really need to solve this.
Thanks,
Jeffrey

Similar Messages

  • Filling up Line item text in BAPI_PR_CREATE

    Hello Guys,
        I want to use the FM BAPI_PR_CREATE and fill up its item text for line item level. How do you properly fillup the table <i><b>PRITEMTEXT</b></i>? What should be the appropriate TEXT_ID, TEXT_FORM should I use?
    I urgently need your professional advice regarding this matter.
    Thank you very much,
    Jeffrey

    Pass the following values:
    TDOBJECT(TExt object)      EBAN           
    TDNAME(Text name )        <Concatenation of Purchase req number and Item number of purchase requisition>
    TDID(Text ID)          B01            
    TDSPRAS(language)       EN             
    REgards,
    Ravi
    P.s: Please reward helpful posts.

  • LSMW - Direct Input - Sales order - item texts

    Hi Gurus,
    To transfert all orders from  old system to new SAP system, I make this with LSMW and program RVINVB10.
    The creation of header and item of orders is good but I have a problem with item texts.
    In LSMW, I have create one structure et I have affected this to the struct BTEXHKOM and BTEXLKOM.
    In BTEXHKOM, the field LAISO = 'FR' and TDID='ZM03' (Id of customer text).
    In BTEXLKOM, the field TXTPARAGRAPH='/' and TXLINE='BLABLABLABLA' (no more 72 char).
    In actions 'Read Data' and 'Convert Data', I see this two structs. But after execution of Direct Input program, I don't see text in my item of sales order.
    I think I miss something.
    Can you help me ???
    Thanks a lot
    Laurent Guilloteau

    Hi Laurent Guilloteau,
    I am facing a similar issue.
    We are trying to upload sales order data using LSMW Standard Batch/Direct input using program name RVINVB10 and program type D. We are not able to upload item text but we are not having any problem in uploading remaining data.
    the details we are passing to BTEXHKOM  structure are......
    BTEXHKOM-OLDNR = IHEADER-OLDORD_NO.
    BTEXHKOM-LAISO = 'EN'.
    BTEXHKOM-TDID = 'Z009'.
    and the for structure BTEXLKOM
    BTEXLKOM-OLDNR = IHEADER-OLDORD_NO.
    BTEXLKOM-TXPARGRAPH = '/'.
    CONCATENATE LITEM-DEPTID LITEM-DEPTNAME
      INTO BTEXLKOM-TXLINE SEPARATED BY ' '.
    we have three input source structures.
    IHEADER                Header structure
    LITEM                     Line item structure ( Material data )
    IPARTN                   Partners structure
    The structure relationships are
    BTEXHKOM <<<  IHEADER.
    BTEXLKOM  <<< IHEADER.
    Please let me know if I am doing some thing wrong or some thing else need to be done.
    Thanks,
    Chindam.

  • How to fill Long Text in Accounting document in the item level.

    Hi,
    I need to fill Long Text field in item level of accounting document from the header texts from Billing header(say billing instructions)
    I checked the user exit EXIT_SAPLV60B_008 but it didnt worked in my case. I have read the billing instructions in the Billing header using FM READ_TEXT but I am not able to save this text  using FM SAVE_TEXT because  for the field Long Text  the parameter TDNAME is a concatenation of BUKRS(COmpany code) BELNR(Accounting doc. no.)  GHAJR(fiscal year)  BUZEI(line item) .
    But I am not able to capture this accounting doc. number in the mentioned user exit instead I am getting Sales Invoice number and hence not able to give TDNAME parameter for FM save_text.

    Hi Amit,
    In application area FINANCIAL ACCOUNTING , go for node LINE ITEM. Here create a step & maintain the prerequisite as per your requirement & in the check you can mention the code or you can direct it to a custom program like ZFI_RGGBR000.
    Here while maintaining the check you will get structures BKPF & BSEG in which you will get the desired field you are looking for.
    Just try to explore in your system how the other validations are maintained.
    After you are done with all your code, you have to run the regeneration program RGUGBR00.
    Here utmost care should be taken while running regeneration program, you should select all the checkboxes in the selection screen except  GENERATE SETS, GEN SUBSTN ROUTNS IN ALL CLNTS  & TRACE PROG. GENERATE CALLS .
    Hope this make your doubt clear.
    Regards
    Abhii

  • PROBLEM IN CREATING BOM ITEM TEXT FROM TEXT FILE

    Hi All,
    I am developing interface program for creating BOM based on data it text file. in my text file contain three column(material, qty and longtext). These text i need to upload to BOM TCODE CS01). Using SAVE_TEXT I have generated text object. it don't says any error. But while viewing text in CS03, text is not visible. Give me suggestion or give me any other method for updating item text from textfile.
    Thanks in advance.
    Regards.
    Peranandam.

    Hi Carl,
    Actually problem is SAVE_TEXT updates text but I cant able to view in CSO3 transaction. because while creating BOM I forget for updating language key for long text. After updating language key I can able to view text in CS03.
    Now I am facing another problem. If I am executing program directly without going to debug mode, It is not updates text. Logic everything is correct. Give me some suggestions for solving this issue. I am also tried with commit work, Commit_text and wait up n seconds statement.
    Regards,
    Peranandam

  • Problem in Capturing Item text (BAPI_PO_CREATE1 )

    HI  Experts
    I have a problem with the BAPI BAPI_PO_CREATE1 for  PO creation.
    When I pass the values to the BAPI and passing Header text in the table I_PO_HEADER_TXT and Item text in the table I_PO_ITEM_TXT.
    But after the execution of BAPI    I_PO_HEADER_TXT is getting cleared and the same is beiong populated in the table I_PO_ITEM_TXT.
    Is there any way to differentiate Item text and Header text??/
    Thnks in Advance.
    Hari Krishna

    Hi,
    For header texts, pass '00000' as the value to structure field POTEXTHEADER-PO_ITEM.
    Read BAPI documentation regarding header & item texts
    4. Examples of population of BAPI_PO_CREATE1 interface:
    Parameter: POTEXTHEADER
    PO_NUMBER
    PO_ITEM              =                    00000
    TEXT_ID              =                    F01
    TEXT_FORM            =                    *
    EXT_LINE             =                    HEADER TEXT
    Parameter: POTEXTITEM
    PO_NUMBER
    PO_ITEM              =                    00010
    TEXT_ID              =                    F05
    TEXT_FORM            =                    *
    EXT_LINE             =                    ITEM TEXT, ITEM 00010
    Regards
    Vinod
    Edited by: Vinod Kumar on May 21, 2010 4:14 PM

  • Not able to print on Purchase order whatever we fill in item text

    not able to print on Purchase order whatever we fill in item text, from where can we link to get printed item text on purchase order

    while doing in quality whatever we fill in text in item details of p.o we are getting it printed on p.order
    but same thing when we are doing in production we are not able to print on purchase order. where we should look out
    for e.g in spro-mm-purchasing-purchase order..

  • Problem in chage FB02 item text

    Hi Freinds.
       I got one assignment to change the Item text in FB02(Change Document). I wrote one program to change the item text using FM FI_ITEMS_MASS_CHANGE. It's working fine. But as soon it changes the next line item's text, the previous is also changed to same as this one. And if there are 6 or 7 items ,at the end of the program , all the line items have same text as the last one.
    But we need different textx of line items for one Header document.
    Am I using the correct Function Module? Please suggest.
    Previously I tried doing recording and BDC of FB02, but failed because i think there is some enhancement done in this T-code.
    so please suggest how to complete my assignment.
    Thanx and regrads.
    Prashant Tiwari.

    perform bdc_dynpro    using 'SAPMF05L' '0102'.
    perform bdc_field                    using 'BDC_CURSOR'
                                        'RF05L-GJAHR'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'RF05L-BELNR'
                                  l_belnr..
    perform bdc_field       using 'RF05L-BUKRS'
                                  l_bukrs     .
    perform bdc_field       using 'RF05L-GJAHR'
                                  l_gjahr.
    perform bdc_field       using 'RF05L-BUZEI'
                                  record-BUZEI_004.
    check the line item and call the screen based on the type
    if line item related to screen 300 then
    perform bdc_dynpro  using 'SAPMF05L' '0300'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'BSEG-SGTXT'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'BSEG-SGTXT'
                                  l_sgtxt.
    perform bdc_dynpro      using 'SAPLKACB' '0002'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'COBL-ANLN1'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTE'.
    else.
    perform bdc_dynpro      using 'SAPMF05L' '0301'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'BSEG-SGTXT'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'BSEG-SGTXT'
                                  l_sgtxt.
    endif.
    if line item related to screen 300 then
    perform bdc_dynpro      using 'SAPMF05L' '0301'.
    perform bdc_field          using 'BDC_CURSOR'
                                          'BSEG-ZUONR'.
    perform bdc_field       using 'BDC_OKCODE'
                                         '=AE'.
    perform bdc_dynpro  using 'SAPLKACB' '0002'.
    perform bdc_field       using 'BDC_CURSOR'
                                        'COBL-ANLN1'.
    perform bdc_field       using 'BDC_OKCODE'
                                       '=ENTE'.
    else.
    perform bdc_dynpro      using 'SAPMF05L' '0300'.
    perform bdc_field            using 'BDC_CURSOR'
                                            'BSEG-ZUONR'.
    perform bdc_field       using 'BDC_OKCODE'
                                         '=AE'.
    endif.

  • Problem in populating PO item text using FM:SAVE_TEXT

    Hi All,
    I am having an issue with SAVE_TEXT FM,
    I need to populate the item text field:
    This FM works fine if the Item text field is blank and i am populating it with text, say "This is a test case",
    How ever if the text field is already populated say the item text field has "Testing", my requirement is i will append the new text to the previously existing, in this case it should come as "Testing This is a test case",
    For doing this i am reading the existing text using READ_TEXT FM and concatenating both the texts separated by space, and passing this to i_lines, how ever the O/P which i get in the text field is "Testing".
    Please advice.
    The cod is shown below:
    CALL FUNCTION 'SAVE_TEXT'
        EXPORTING
        CLIENT                = SY-MANDT
         header                = t_head
         insert                = 'X'
         savemode_direct       = 'X'
        OWNER_SPECIFIED       = ' '
        LOCAL_CAT             = ' '
      IMPORTING
        FUNCTION              =
        NEWHEADER             =
        TABLES
          lines                 = i_lines
       EXCEPTIONS
         id                    = 1
         language              = 2
         name                  = 3
         object                = 4
         OTHERS                = 5.

    hi,
    once u use the save_text also
    with save_text u are updating the STXH table .
    there is one field in stxh table which is once updated shows the text in the sceen.
    or u can run a bdc put the default text where u want to put and afterwards when u use create_text and commit_text,u ll be able to see the text in the screen.
    regards
    kanishak

  • Problem loading hierarchy long text. Item text only displays 45 characters

    Hi,
    When loading the Financial Statement hierarchy from ECC to BI I am only getting a 45 character long text for the nodes. This text seems to correspond to the "Item" text seen in transaction fse3 in ECC. However, the text that I need to have is the (concatenated) long text enterer in the multiple fields under either "End of Group" or "Start of Group" (under Item: Display Texts in fse3).
    Does anyone know if it is possible to extract this information and how to go about when doing this?
    Points will be rewarded for help.
    Regards
    Nils

    Hello Vânia,
    >> fac586, Thank you very much for your help ….
    Just so you know, fac586 is called Paul :).
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

  • Fill BSEG-LIFNR and LFA1-NAME1 in line item text field of Bank GL line item

    Hi all,
    I need to develop a program to populate the Vendor Number (BSEG-LIFNR) and Vendor Name (LFA1-NAME1) in the line item text field of Bank GL line item.
    The UI design will have the input data as:
       - Company Code
       - Posting Dates (both from and to date)
       - Execute Icon
    Please let me know how to proceed on this.
    Thanks and regards,
    Anishur

    program a bdc to tcode fb09
    A.

  • Accounting item text problems when MIRO

    Dear all:
             In the MIRO transaction,  after posted the item text will be generated to FI doc. item text?
             Item text of MIRO basic data will be generated to fi doc. item text when after miro.
             But I not sure the item text will be generted to FI doc. item text? For this, it is standard function or not ?
             If yes, it is possible not work?

    You query is not clear, please clarify.
    If you are asking if the line item text from the PO (that you can see in MIRO) will show on the accounting document  and whether this is standard functionality the answer is no.
    The text information from the basic data screen in MIRO, will show in the accounting document on the vendor line.

  • TEXT_ID for Item Text of Purchase Order

    Hi,
    i want to fill a item text of a purchase order via BAdI BBP_PO_INBOUND_BADI. The BAdI is called, that's tested.
    Transaction ME23, Item / Texts / Text overview.
    I tried with
      data:
        lw_TEXT type BBPS_IF_BAPIMEPOTEXT.
        lw_TEXT-PO_NUMBER = '4400001659'.
        lw_TEXT-PO_ITEM   = '00001'.
        lw_TEXT-TEXT_ID   = '0001'.
        lw_TEXT-TEXT_FORM = '* '.
        lw_TEXT-TEXT_LINE = 'strike'.
        append lw_text to BBP_POTEXTITEM.
    and hoped to see "strike" as text - no success. Of course the values should be found later dynamicly.
    In my point of view the parameter TEXT_ID is the problem. I tried 01, 0001, L01, K01, A01 and F01 but without success.
    How can i find out the right TEXT_ID?

    Hello Udo,
    I have exactly the same requirement, I need to fill the item text via (BBP_PO_INBOUND_BADI, method: BP_MAP_BEFORE_BAPI).
    In my case I have to write some values in BAPI_POTEXTITEM.   However, it seems that the badi is not saving the data.  At least I cannot see the text values in ME23N, Item / Texts.
    Would you give me an advice ?
    Thank you !
    best regards,
    Diego

  • Item text in MIGO

    Hi,
    During the posting i fill the field Item text field  with some text but after posting the document the value dosen't appear in the field item text.
    What is the reason,do we need to maintain some settings for this?
    Thank you.
    Regards,
    Yshu

    Dear yshu chinni 
    did you find the solution to this issue?
    cause we are facing the same problem, can you please give me some advise?
    best regards
    marco

  • Inbound idoc  mess type:DESADV basic type: DELVRY03  Item text

    Hi all,
    W're having a inbound process to create inbound deliveries via IDOC.
    mess type:DESADV basic type: DELVRY03 
    We want to create a item text on the delivery via the IDOC.  Is this possible?
    I see that there's a segment E1TXTH9 - E1TXTP9  to put in texts.
    But as I see it, to create a text, we have to give the delivery nr in TDOBJECT TDOBNAME TDID  TDSPRAS LANGUA_ISO.
    But since we are creating it, this is not possible.
    Is there any way to create an item text on an inbound delivery via the IDOC?  And how.
    Thanks a lot!
    Caroline,

    Hi Chris,
    Before end of the ur functiond module (Idoc_input_xxxxxxx) create an Enhnacement spot  . at this point I hope so delivey will be created already .so now u can get the delivery number
    **********The Logic for Text Field filling*******************
    IF NOT  vbeln IS INITIAL.
    DATA : L_FNAME TYPE THEAD-TDNAME,
           L_FID TYPE THEAD-TDID,
           IT_TLINE  TYPE TABLE OF TLINE,
           WA_TLINE LIKE LINE OF IT_TLINE.
    CONSTANTS :C_FID TYPE THEAD-TDID VALUE '0004',
               C_FID1 TYPE THEAD-TDID VALUE '0007',
               c_Text(40) type c value 'xxxxxxxxx',
               C_LANG  TYPE THEAD-TDSPRAS value 'E',
               C_FOBJECT TYPE  THEAD-TDOBJECT VALUE 'BELEG',
               C_FFORMAT TYPE TLINE-TDFORMAT VALUE '*'.
    Reading  the Idoc data table for Text field population
         READ TABLE IDOC_dATA INTO IS_EDIDD
                              WITH KEY SEGNAM =  c_segnam_e1edkt2.
         MOVE IS_EDIDD-SDATA TO IS_E1EDKT2.
         CONCATENATE mrm_RBKPV-BUKRS mrm_BELNR mrm_GJAHR  INTO L_FNAME.
         if sy-subrc = 0.
           MOVE: IS_E1EDKT2-TDLINE TO WA_TLINE-TDLINE,
                 C_FFORMAT TO  WA_TLINE-TDFORMAT.
                 APPEND WA_TLINE TO IT_TLINE.
              CALL FUNCTION 'CREATE_TEXT'
                EXPORTING
                  fid               = c_FID
                  flanguage         = C_LANG
                  fname             = L_FNAME
                  fobject           = C_FOBJECT
                  SAVE_DIRECT       = C_X
                 FFORMAT            = C_FFORMAT
                tables
                  flines            = IT_TLINE
              EXCEPTIONS
                NO_INIT           = 1
                NO_SAVE           = 2
                OTHERS            = 3
              IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
              ENDIF.
    I hope it resolves ur problem.Please let me know if u have any
    Queries.
    Rgds
    Sree m

Maybe you are looking for