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

Similar Messages

  • Problem in line items(text elements printing) in smartform

    Hi all
    Here iam printing line item data in invoice form
    around 7 fields(text elements) iam having  the fileds are displaying one by one
    I need to diplay all 7 fields one after another with some gaps in the same line
    can u please let me know how to do it with text elements
    thank you

    Hi,
      create a table. In once line type(Line type 1)  create 7 different cells (Columns) for a single row.
    For eg:
    Line typ1 :  cell1 cell2 cell3 cell4 cell5 cell6 cell 7.
    cell1 : &mara-matnr&
    cell2 : &mara-ersda&.
    like soon in 7 different cells.
    Br,
    Laxmi.

  • SAP SCRIPT Header text and Item text not printing in customized PO

    Hello Experts,
                          I have copied the standard MEDRUCK to ZMEDRUCK and customized the form according to the requirement.
    I want to print the header text and Item text in my form.
    For Header text I have used :
    /: INCLUDE &EKKO-EBELN& OBJECT EKKO ID F01
    Problem 1: The text what I enter in header text is flowing only when I hit on print preview without saving the form. Once I save the SAP SCRIPT  and click on print preview the field is appearing blank. I also tried to print the form, but the field is appearing blank even on the print out.
    Problem 2: For item text the field is concatenation of  EBELN & EBELP. Can anyone suggest me how to concatenate and fetch the text in item text.

    Hi,
        Im getting an error in my subroutine pool for i_xtline which is to fetch ITEM TEXT., It says its not a in any internal table nor defined as data. How can I proceed further. I have pasted my code below. Please check and revert ASAP
    PROGRAM  ZMEDRUCK_SUBP1.
    TABLES: EKPO, EKKO.
    FORM fetch_table_data TABLES in_tab STRUCTURE itcsy
                                 out_tab STRUCTURE itcsy.
    data xname like THEAD-TDNAME.
    data i_xtline like xtline.
    clear i_xtline.
    refresh i_xtline.
    CONCATENATE EKPO-ebeln EKPO-ebelp INTO v_item_text.
    MOVE v_item_text to ITEMTXT.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
      CLIENT                        = SY-MANDT
        id                            = F01
        language                      = EN
        name                          = ITEMTXT
        object                        = EKPO
      ARCHIVE_HANDLE                = 0
      LOCAL_CAT                     = ' '
    IMPORTING
      HEADER                        =
      tables
        lines                         = i_xtline
    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.
    ENDFORM.

  • Item text inconsistency for multiple item text in CRM Billling document

    Hi Experts,
    I am facing problem in adding item text in CRM Billiing document in Web UI.There are 3 line items in my billing document and their item text gets determined from Billing due list items but there is a requirement to change the item text at billling documnet level also to populate it in the invoice.Here comes the problem when I change item text of first item system alllows me to change in text type Sales Text but when I am doing the same with suceeeding items it throws me a exception like this.
    Business Server Page (BSP) error
    What happened?
    Calling the BSP page was terminated due to an error.
    SAP Note
    The following error text was processed in the system:
    Entry parameter ES_KEY of method CL_CRM_GENIL_CONTAINER_OBJECT->GET_KEY contains value , which is not allowed
    Exception Class CX_SY_IMPORT_MISMATCH_ERROR
    Error Name CONNE_IMPORT_WRONG_OBJECT_TYPE
    Program CL_CRM_GENIL_CONT_SIMPLE_OBJ==CP
    Include CL_CRM_GENIL_CONT_SIMPLE_OBJ==CM007
    ABAP Class CL_CRM_GENIL_CONT_SIMPLE_OBJ
    Method IF_GENIL_CONT_SIMPLE_OBJECT~GET_KEY
    Line 18 
    Long text During IMPORT it was ascertained that the object in the dataset has a different object type to the target object, or the structure of the complex object is not compatible with the structure of the target object. The target object has either a different length, a different number of decimal places or a different data type to the object that is to be imported.
    Error type: Exception
    Your SAP Business Server Pages Team
    This change in item text only works for first item and gives exception for all below items,Is this a standard SAP functionality or what can be done as same thing can be done from back end.

    Hi,
    The above given thread is the perfect solution for your requirement.
    Defaulting some data in the text field means, either you can use the the Substitution / BTE.
    Using the substitution, system not allows you to change the text field in case of any modification you want. But with the BTE you can specify only at the time of the document posting.
    BTE is the best option in this case.
    VVR

  • Item text is populationg Partially in adobe form

    Hi All,
    I have a problem in printing item text in adobe form.
    item text is having more than 100 lines which is being populated in adobe form.
    the subform text is created in layout and there a TEXT node is created which has text
    this TEXT node in subform text prints item texts.
    now problem is that suppose there are 100 lines in item text then 60 lines are being printed and the rest 40 lines are not printing in adobe in next page... from next page next item text are being printed...
    When i increase the page height till some lenght then rest all 100 line is getting printed but in single page...
    I want item text to be printed in 1st page and 2nd page also if item text is long ( ie. 60 lines to be printed in page 1 and rest 40 lines should be printed in page 2)
    Thanks

    Hi,
    Have you checked, Object palette --> Layout --> Expand to fit?
    Thanks & Regards,
    Sanoosh

  • Component Item text is not copying to PR (Item Text) if the PR is frm MD51

    Hi All,
    I am facing one problem in PR Item text.
    The issue is,when we attach a component to network activity,we have an option to maintain item text for the component.If the procurement type is PR+Reservation,we'll get PR no from CJ20N.System is displaying the item text in PR item detail "item text" tab.
    But if the component has procurement type isReservation for WBS Element & it has procurement indicator "F",then we'll run MRP for getting a PR no.This PR is not displaying the Item text in PR "Item text" tab.
    It has one configuration setting in MM i.e SPro>MM>Purchasing>PR>Texts for Purchase Requisitions.
    I have checked the config & its fine.
    So,if we are creating the PR for projects from MD51,then system is not displaying Item text in PR.
    If anybody came across this issue help me..
    Thanks a lot.
    suresh

    I am alsw waiting for a reply for the above question.
    guys,.....help me out
    anyone wants me, more explanation for the problem?
    regards
    surya
    Edited by: suryapampana on Dec 21, 2009 11:41 AM

  • 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 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

  • 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

  • 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.

  • Document line item text in Clearing document

    Dear All,
    Document line item text
    My client want the vendor invoice line item text(BSIK-SGTXT) to be captured in the corresponding clearing document line item text field(BSAK-SGTXT).
    (i.e) The vendor invoice and its payment clearing document should have the same text in the document line item text filed.
    According to me i can use  a substition rule and a user exit to assign the values. but here comes a problem* i have one clearing document against 3 to 4 vendor invoice documents* so my programming logic has got stucked here? like which vendor invoice line item text the clearing document should pick up?
    is there any other enhancements possible or can some one help me with the programming logic to be applied here.
    Thank you
    Regards,
    Vasanth D

    like which vendor invoice line item text the clearing document should pick up?
    is there any other enhancements possible or can some one help me with the programming logic to be applied here
    Why don't you discuss the issue with your client?  As you said, if you pay 5 invoices in a single run, the payment document item text can't carry all of those texts unless you use the long text.  What is the reason for the requirement?  Perhaps there's another solution.

  • Sale order item text through BAPI_SALESORDER_CREATEFROMDAT2

    Hi,
    We are creating a sale order through a 'Zprogram'. Uploading the required details from a excel sheet and  passing to a BAPI_SALESORDER_CREATEFROMDAT2.
    We are using the 'order_text' parameter to create the item text. If there are multiple lines in the same item text likes this
    (we are passing it in a single line)
    Order type ORDER_ID   PO number u2026u2026 Item Note - Zi01
    STD                   2                   10                Currency - RS
                                                                       Test order -1
                                                                       Test item - 2                                                                               
    It is creating the sale order with the item text  and the item text when viewed normally its appears one below one. But if we click the 'detail' button and view it through the editor mode it is appearing in the same line with # characters in between.
    TAX_CURRENCY = Rupees #TAX_UNIT_PRICE =0.0000# Test order = 1
    It is replacing the enter statement with '#.' We can split the text where # appears and pass it as a separate line .but this will create a problem when the data itself contains a  # character.
    Please advise how we can avoid this and can create the sale order item text correctly.
    Regards,
    Charumathi Balachandran

    As you said, How are creating single line text from the multi line text.
    I hope you are using a CONTACTENATE statemetn to do so. Please the SEPARATOR being used for this.
    I hope you have copied texts from excel sheet to SE38 editor. Please copy text from Excel to Notepad, then Notepad to SE38.
    Edited by: Priyanka Chowdry on Dec 20, 2010 11:21 AM

  • Material item text not appearing in PO Print Preview

    Hi experts,
    We have created a new PO type .  We have assigned it with PO text via Spro>Purchasing>Purchase Order > Message > Text for messages > define text for purchase order
    Maintained text for document header
    Maintained  text for document item
    But still in Purchase Order , the material PO text at item level , is not appearing at the time of print preview / print out.
    Please suggest .
    Regards,
    ( Rajneesh Gulati )

    If I understand correctly, you want to copy the purchase order text from the material master directly into the PO's for this material.
    I got the same problem; text appears in PO item text, but doesn't appear on print preview.
    => check your forms first
    => if you can't find an error here, check the copying control in
    SPRO -> Materials Management -> Purchasing -> Purchase Order -> Texts for purchase orders -> Define copying rules for item texts
    go to the text linkages of the text type that you want to see appearing
    => make sure that the entries with source object 'material master' have the Fix value (blank) rather than N or * (if you see the text appearing in the PO but not on the print out, this means that this setting is currently set on *)
    Hope this helps

Maybe you are looking for