Texts in sales order

Hi Folks,
I am using the Bapis BAPI_SALESORDER_CHANGE and BAPI_TRANSACTION_COMMIT to add texts to the existing orders.I am passing the following fields in the Bapi.
SALESDOCUMENT = 'sales order number(VBELN)'.
<b>ORDER_ITEM_INX</b>
ITEM_NUMBER = itemnumber
UPDATEFLAG = 'U'
<b>order_text</b>
DOC_NUMBER = Salesordernumber
ITM_NUMBER = Item number
Text_id = Z001
LANGU = 'EN'
TEXT_LINE = Text I wanted to pass
I also get the success message as sales order has been saved and ORDER_ITEM_INX has been processed successfully. But when I check it in the order, I dont see any related notes.
Am I missing any fields in this bapi so that it is not comitting?
Raj.

Hi siva,
  PERFORM ZSAVE_TEXT USING IT_DISPLAY_BDC-VBELN
                                 IT_DISPLAY_BDC-POSNR.
FORM ZSAVE_TEXT USING L_DISPLAY-VBELN LIKE IT_DISPLAY-VBELN
                      L_DISPLAY-POSNR LIKE IT_DISPLAY-POSNR.
  DATA: L_THEAD LIKE THEAD.
  L_THEAD-TDOBJECT = 'VBBP'.
  L_THEAD-TDSPRAS = 'E'.
  L_THEAD-TDID = 'Z056'.
  CONCATENATE L_DISPLAY-VBELN
              L_DISPLAY-POSNR
          INTO L_THEAD-TDNAME .
  REFRESH IT_TEXT.
  CLEAR IT_TEXT.
  IT_TEXT-TDLINE = 'TEXT...'.
  APPEND IT_TEXT.
  CALL FUNCTION 'SAVE_TEXT'
    EXPORTING
      CLIENT          = SY-MANDT
      HEADER          = L_THEAD
      INSERT          = 'X'
      SAVEMODE_DIRECT = 'X'
    TABLES
      LINES           = IT_TEXT
    EXCEPTIONS
      ID              = 1
      LANGUAGE        = 2
      NAME            = 3
      OBJECT          = 4
      OTHERS          = 5.
  IF SY-SUBRC <> 0.
  ENDIF.
ENDFORM.                    "ZSAVE_TEXT

Similar Messages

  • How to update TEXT in Sales order header

    Hello ,
    I have requirement in which I am creating SO via IDOC calling BAPI_SALESORDER_CREATEFROMDAT2.
    Question: Can any one help me in finding a solution to update the TEXT in sales order header which is confogured IN TEXT CONTROL in SD.
    I have tried various option using CREATE_TEXT but it is only updating STXH table , the text is not coming in the sales order.
    If someone knows about this , <removed by moderator>.
    Edited by: Thomas Zloch on Nov 15, 2010 4:20 PM - please do assign priorities > normal

    Sounds like a text determination config issue - have you assigned the text in VOTXN?  Have you run the text determination analysis from VA02 in the document?

  • Header Text And Item Text in Sales Order

    Dear ALL
    First one:
    I have two different problems with text in sales order, when i create sales order after giving all the information like customer and material.
    If i navigate through the Go To-- > Header ---> Text then there is a dump is any idea what all i need to check?
    Error  Message
    A RAISE statement in the program "SAPLOLEA " raised the exception 
    condition "CNTL_ERROR".                                           
    Since the exception was not intercepted by a superior program     
    in the hierarchy, processing was terminated.                                                                               
    Short description of exception condition:                                                                               
    For detailed documentation of the exception condition, use        
    Transaction SE37 (Function Library). You can take the called      
    function module from the display of active calls.                 
    The termination occurred in the ABAP/4 program "SAPLOLEA " in          
    "AC_SYSTEM_FLUSH".                                                     
    The main program was "SAPMV45A ".     
    The termination occurred in line 27                                    
    of the source code of program "LOLEAU02 " (when calling the editor 270).
    Second one:
    when i am creating the sales order without enter the quantity  , customer and material if i navigate through the Header Text or item  Text i can able to go but there in no dump, the moment i enter the quantity for the material then it over writes all the text in item and header.
    Any suggestions please?
    Thanks & Regards,
    Veer

    Dear Veer,
              Please take the help from the technical people to fix the issue because it may related activation some Z developments which are related to the text.
    Check the text determination procedure configuration settings also whether the text is calling from the Customer master and Material master.
    If the text is calling from the master data maintain the text in the master data then try.
    I hope it will help you
    Regards,
    Murali.

  • Item text from sales order to purchase requisition

    Hi Experts,
    I have below queries ,
    1. What are the controls to generate/create a purchase requisition from a sales order.
    Is this possible that a Pur. req generated from a sales order but sales order is not its account assignment.
    How item text from the sales order can be copied to purchase Requisition, does settings in purchase requisition in SPRO (Purchasing Purchase req-text for purchase req----define copying rules) works only for automatically created Pur req.??
    item text from sales order can be copied for PR created through MRP or planned orders converted to PR.??
    I will appreciate if someone can provide me documentation on basics of sales and distribution at my email
    [email protected]
    Thanks in advance
    anand

    hello, friend.
    i can only answer part of your question as i am not sure of the others.  however, yes... you can automatically create a purchase requisition from the sales order. 
    one example is third party sales.  because of the item category group that you specified in the material master, the sales document determines an item category (and schedule line) that controls the creation of the purchase requisition.  here, the system knows that you must source the material from your vendor for delivery to your customer.
    further, as in the above case, when your company creates the PO with reference to the PR, your company appears as the buying entity but the ship-to address is that of your customer.
    i did not understand your question on account assignment.  please elaborate and we'll see if we can come up with the answer.
    if you wish to see documentation, you could refer to SAP's article on Third Party Sales.  other scenarios such as just-in-time inventory for trading companies or make-to-order companies may also apply.
    regards.

  • Copying Text From Sales order to Billing Document

    Hi all,
    I have searched all posts for my issue but found nothing so that i am posting this issue.
    I want to copy the Some text form sales order to billing document is there any cnfig to do this
    order is there any exit for billing in which i can write code to copy text from sales order to billing document.
    please provide me a solution.
    Thanks in adavnce.
    Vinod.

    Hi,
    Use the same t-code VOTXN to do access sequence assignment.
    When you choose text object Billing Doc (header/item), there is 3 folders in dialog structure:
    - Text procedure
    - Access sequence
    - text procedure assignment
    In the text procedure folder, select related text procedure, then assign the created access sequence to respective text id.
    Hope this help.
    Cheers,

  • Please tell me table that stores texts in Sales Orders

    To everyone,
    Does anybody know which table stores text in sales orders(VA01 screen -> item data -> under texts tab)?
    I would like to create a query or ABAP report to check data entered in the text field but I don't think it is in VBAK or VBAP.
    Thank you very much in advance.
    Best regards,
    Miki

    Hi Miki,
    Sales text is stored in encrypted form in the database table. You cannot directly read it from database table. but you can use the function modue READ_TEXT to do so. The related table is STXH and STXL
         try using the  FM READ_TEXT.
    double click on the text>Goto>Header. Here you can find the text id & text object.
    Thank you,
    Pavan.
    Edited by: PAVAN CHANDRASEKHAR GANTI on Aug 18, 2009 7:26 AM
    Edited by: PAVAN CHANDRASEKHAR GANTI on Aug 18, 2009 7:27 AM

  • Function Module or BAPI to update Short text  for sales order item(vl02n)

    Hi All,
    I need to update the Short text for sales order item in vl02n transaction from an internal table with Delivery number and other relevant details .
    Does any body know any Function Module or BAPI which can accomplish this purpose .
    Or else writing BDC is the only option I have got ? .
    Please clarify .
    Thanking you in advance .
    With Regards,
    Suriya .

    Hi
    You can try using BAPI_SALESORDER_CHANGE if you want to change sales order
    Regards
    MD

  • Copy Texts from sales Orders to invoices

    Hi,
    someone can help me?
    the additional texts of old invoices (related to sales order #1) are changed when I change the additional texts of the order where they come from (sales order #1)
    I don't want this changes in the old invoices created before changing the additional texts in sales order.
    Thanks,
    Antonio.

    Hi Ravi,
    First at all thanks for answering.
    According to your answer I understand that every time I modified the sales order I'd have to launch a program to maintain the texts in the old invoices, isn't it?
    Thanks again!
    Antonio.

  • Transfer of Header text from Sales Order to Delivery

    Hi Experts,
    I had a requirement to populate Terms of delivery text in Sales Order Header text with some predefined value which I have accomplished using MV45AFZB - User Exit USEREXIT_CHECK_VBAP which transfers the text on save of the document to sales order header (terms of Delivery Text ) .
    Now the issue is the same text is required to be copied to delivery - Terms of Delivery header Text. But this is not happening/Its occuring one out of 4 times . I am not able to find out the reason for this.
    Please help in this regard.
    Thanks

    This can be set in conifugration. Transaction VOTXN. The delivery header text can be set to be referenced from the sales order.

  • Detecting change on header and item texts for sales order in user exit

    Hi,
    In the user exit of VA02, I need to identify/detect if header or item texts for sales order is changed or not.
    Please advise on this.
    Regards,
    Shreyas

    Normally system stores the old values in XTables and new values in YTables.  Check if you have access to these in your user exit.  If you give the user exit name, someone will be able to guide you.
    hith
    Sunil Achyut

  • Any user exit to copy text from sales order to PR

    Hi,
    Any user exits or bapi to copy text from Sales order to Purchase requisitions.
    Jack

    Hi
    In SPRO , please use the menu path Materials Management - Purchasing - Purchase Requisition- Texts for Purchase Requisitions - Define copying rules
    Here  select the text and double click on Text linkages. There you can define the source text from sales order to the target text in PR.
    Please try and let me know if you still have any queries.
    Please reward points if this helps you
    Rgds

  • Wrong short text for sales order item

    Hi guys,
    I have an issue for the short text for sales order item. It is werid that I get the different short text depends on how we enter the material. If we only enter the material #, we get the short text for sales order item from material master data. If we enter the material #, plant and storage location, we get the short text for sales order item from customer material infor record. However, the customer material infor record is only maintained for inter-compnay transaction. System should not pick it for third-party transaction.
    I found a code in FV45PFAP_VBAP_FUELLEN:
    Bei Primärbedarfen ist MAAPV-ARKTX nicht relevant
        if vbak-vbtyp ne vbtyp_pbed.
          vbap-arktx = maapv-arktx.
        endif.
    Kundenmatinfo hat höhere Priorität
        if knmt-postx ne space.
          vbap-arktx = knmt-postx.
        endif.
        if da_arktx ne space and
           svbap-tabix = 0 and
           vbapin-matnr = vbap-matnr.
          vbap-arktx = da_arktx.
        endif.
    But it is nothing customized. Who can tell me what is wrong here?
    Thanks,
    DL

    Hi,
    Text coming from source (MMR, CMIR etc.) is being "pulled" via the access sequence. Check the Text analysis in your sales order in Tab Texts, at item category level.

  • Dump after creating new header text on sales order and invoice.

    Hello,
    We have created one header text on sales order and the same text for invoices, on VOTXN customizing.
    Testing the new text, system let us save the text fine, but later, if we display the text, system give us dump error.
    My question is, after transport the customizing to the next environment, is necessary run a standard program. Since VOTXN, we have generated the new access created, but dump appear displaying text header tab.
    Any help on this?
    Thanks in advance

    Hello Customer master table man
    1) Did you review the dump analysis- ST22?  Do that because the dump amy or may not be related to the Text config changes.
    2) You are also mentioning about transporting?  Did you already transport and are facing this issue in the target client or is it happening in the source client and you want to avoid it in the target? OSS note 1117467 throws light on transporting issues.
    Review the following OSS notes:
    548615 - FAQ: Text determination in SD II
    548517 - FAQ: Text determination in SD I
    1117467 - Text Customizing change not transferred in target system II
    970153 - Change to Customizing text not transferred to target system
    Hope this helps.

  • HEADER TEXT OF SALES ORDERS

    WHERE CAN I SEE THE PARAMETERS VALUES IN  "READ_TEXT "   FM
    OBJECT
    ID
    NAME
    LANGU
    SUPPOSE I WANT TO READ THE HEADER TEXT FOR SALES ORDER. IAM USING 4.7 IDES.

    hi  ,
    its easy to find where the the parameters are stored.
    Just right click on the parameter  and click on Technical information to see the table name..
    this is applicable for all.
    Siva

  • Add text for sales order to A/R line items

    Hello Experts:
    Does anybody know of a way to add the field VBRP-ARKTX (Short text for sales order item) to the A/R line item display (FBL5N

    HI,
    Please explore the option of using a USER-EXIT at the time of creation of Accounting Document from the Billing document. Looks like the field you are interested in is not automatically transferred from the billing interface to the accounting interface.
    Regards

  • FM to get Text in Sales Orders - VA02

    Dear all,
    I'am looking for a Function modul, which get all text in HEADER and ITEM for a document number in Sales Orders=> VA02.
    Is there any one who can help?
    Best regards
    Edited by: Rob Burbank on Feb 17, 2010 11:35 AM

    Dear  handeglo ,
    use the function module READ_TEXT this is helpful in getting the long texts from the database and will work for the VA02
    header and item texts retrival .Eg.
    CALL FUNCTION 'READ_TEXT'
              EXPORTING
    *           CLIENT                        = SY-MANDT                   Field:
                id                                 =          "put here the id of thr text type"     TDID
                language                     = 'D'    "language in which the text exists.    TDSPARS
                name                           =      "put here the name of the text AS in     TDONAME
                           for item texts its sales order number+item number
                object                          = 'VBBP'    "object type for item texts       TDOBJ
    *           ARCHIVE_HANDLE                = 0
    *           LOCAL_CAT                     = ' '
    *         IMPORTING
    *           HEADER                        =
              TABLES
                lines                         = i_lines
             EXCEPTIONS
               id                            = 1
               language                      = 2
               name                          = 3
               not_found                     = 4
               object                        = 5
               reference_check               = 6
               wrong_access_to_archive       = 7
               OTHERS                        = 8
    also refer the tables stxh and stxl these tables contain all the header and item texts data respectively
    Edited by: abhi_014u on Feb 17, 2010 3:44 PM
    Edited by: abhi_014u on Feb 17, 2010 3:46 PM
    Edited by: Rob Burbank on Feb 17, 2010 11:35 AM

Maybe you are looking for

  • 8800 GT cards ARE available for older Mac Pros...

    http://store.apple.com/1-800-MY-APPLE/WebObjects/AppleStore.woa/wa/RSLID?s=topSe llers&fnode=home/shopmac/macaccessories/displays&nplm=MB560Z/A&mco=OTkzNDY

  • Change warning msg to error msg.

    well in material master i am getting a warning message Message no. MM071 i am change into error message. regard nabil Edited by: sayednabil on Jun 18, 2010 8:14 AM

  • Itunes crashes when browsing films!

    Hello, I have a problem when browsing films in iTunes it always crashes now and gives me this error report . Exception: EXCBADACCESS (0x0001) Codes: KERNINVALIDADDRESS (0x0001) at 0x54424032 Thread 0 Crashed: 0 QuickTimeH264.altivec 0x996a9bd8 JVTCom

  • Microphone won't work for 4s only in videos?

    If I take any sort of video on my 4s the microphone won't work at all. It'll work when talking, with Siri, even in voice memos. But if I do a vine or Instagram video or regular video it won't have sound???

  • Beamforming troubleshooting on AIR AP1142

    Hello! I set up beamforming (ClientLink) at both frequencies 2.4GHz and 5GHz on AIR-AP1142N-R-K9: AP#sh vers Cisco IOS Software, C1140 Software (C1140-K9W7-M), Version 15.2(2)JA, RELEASE SOFTWARE (fc1) AP#sh run int dot11Radio 0 interface Dot11Radio0