How to modify the Sales Order Header Text

Hi Experts,
I have bulk of sales orders, for each sales order i have to modify the Header Text,( text id : 0005, text object = VBBK,)
for this, is there any standard BAPI or Function Module is available. If so could you let me know what are the input parameteres i have to pass.
Regards,
Nag..

hello,
there is BAPI "BAPI_SALESORDER_CHANGE"
there is a ORDER_TEXT in a table parameters in the BAPI.
pass all the relevant inputs & use commit bapi
Thanks,
Manjunath MS

Similar Messages

  • Which table stores the Sales Order--Header--Texts--EDI Text?

    Hi Experts,
    I hv a requirenment regarding the Sales Order -> HEADER -> TEXTs -> EDI Text-Int, so, I need to hv some Orders(#). which does hv this text on them, for as test data.
    So, I am looking which table stores, this text for my_sales_oders_12345678.
    [ actually, i got some info from sdn, like,
    Table TTXOB -> stores Texts: application object for Sales order header it is always VBBK i.e. field TDOBJECT = VBBK.
    Now all the text types i.e. text ids are stored in table TTXID
    So fetch all text ids(TDID) from this table based on TDOBJECT = VBBK. And its descriptions are stored in TTXIT table.
    but, no use this ]
    thanq
    Edited by: Srinivas on Jul 10, 2008 11:06 PM

    Hi Srinivas,
    Generally to access the text we use READ_TEXT function Module.
    we need to pass the four parameters
    ID
    LANGUAGE
    NAME
    OBJECT
    You can find these parameters in the sales order it self.
    Goto ---> Header ---> Texts
    Now double click on the text it takes you to the Text Editor. You can find the screen Display Form Header . In this goto Menu Path Goto ---> Header. You get a screen Text header. Here you can find the these parameters.
    Text Name
    Language
    Text ID
    Text Object
    You need to pass these parameters to the function Module to text the text.
    You can also fins the text in Table STXH
    Best regards,
    raam

  • How to cancel the sales order - header and line status are in Entered Stage

    Dears,
    I have some sales order to be cancelled in which the header and line status are in *"Entered"*. I am not able to cancel these sales order.
    Also note that these orders are for maintenance service.Once i book these orders the lines will change to closed status.
    So it is not possible to book and cancel the lines.
    Kindly me to resolve this.

    926530 wrote:
    Boss,
    If i do Action-->cancel on header, it just makes the qty to zero.But the header and line status still showing as entered.It will not cancel the order.
    The problem for me is that these lines are coming in my monthly reports. This is what your question says...be more specific as what is your issue..which in turn is your problem
    How to cancel the sales order - header and line status are in Entered Stage
    Coming to your Action-->cancel...as far as i know ...the header status will change to canceled..
    unless until you have some processing constraints in place...which is stopping you...
    HTH
    Mahendra

  • How to update the sales order header & item data in TM system

    Hi Experts,
    Greetings!
    I need your help,I have a one requirement sales order data came from ECC these sales order data need to update in TM Sales order header table as well as item table also these fields are additional fields.
    Can anyone please guide me I am very new in TLM .
    Thanks in advance.
    Thanks&Regards,
    Siva.

    Hi Siva
      "/SCMTMS/TRQ~ROOT" is for sales order header and "/SCMTMS/TRQ~ITEM" is for details.
      I assume you need to
    enhance the structures for these nodes to hold your add. fields;
    and do the same for the input parameter of service TransportationRequestRequest_In (which is used to create OTR) from PI side;
    Pass the add. fields during service call (impelment in ERP system);
    Map the fields from service paremeter to node attribute (implement in TM system, BAdI   /SCMTMS/TRQ_SE_TPNRQ_REQ~CHANGE_MODIFICATION create modification table for the input parameter).
    I cannot find source code for all of that; hope it helps.
    Sensen

  • Updating Sales Order Header Text

    Hello Experts,
    Could you please help me in knowing how to update or maintain the Sales Order Header Texts programatically while creation of sales Orders.
    Here the scenario is ---Sales orders are getting created inCRM and there they are maintaining some text from webshop. Immediately a sales order will also gets created in ECC.
    Now i would like to know how to do that from ECC side?? Please help...
    Br,
    Anil

    Hi,
    I guess you'd have to find a BADI or user exit to update the texts in ECC. Check which IDOC brings the data from CRM to ECC. And the segment that carries the TEXTs. Then in the BADI you may either pass the date to appropriate fields or call the SAVE_TEXT function module in update task.
    Regards
    Prasenjit

  • Update Sale Order Header Text through Enhancement

    Hi Experts,
             I Have a requirement to update the sale order Header Text , when the sale order is opened in VA02 and saved.
    Here in I tried using edit_text, it updates sale order header text  directly in DB during run time even before the save action is completed.
    But I need to just fill the header text and that has to be saved during the save action only.
    I tried coding the same in the user exit (userexit_save_document) but this user exit gets triggered only when there is some changes made to the document when opened in VA02 & Saved.
    Is there any  user exist to pass sale Order Header text and save when save button is clicked irrespective of the document been changed or not.
    Thanks in advance
    Sathish

    Hi Brad Bohn,
        My actual requirement is to trigger an Idoc when the user goes to VA02 transaction and clicks save.
    IDoc gets triggered only when there is some changes to that document, that is through NAST table entry based on the output configurations in NACE transaction.
    Now that the user wants to trigger an IDoc even if there is no change (ie. to reprocess the IDoc) when he just opens a sale order in VA02 and click save.
    It is not possible to trigger an IDoc through configurations when there is no actual change in VA02 and saved.
    So it has to be forcefully sent by making some additions to the Order through coding, so I choose that Text box to fill some additional data and save .
    Kindly Let me Know any thing could be done for this scenario.
    Thanks in advance
    Sathish

  • Archived Data - Sales Order Header Text

    We have archived the object SD_VBAK and I notice that some of the sales order header text also been archived. Now, the question is from where I retrieve back those header text. I am building the info structure but I need to know the object name for the header text.
    Please help.

    The texts are archived using the class TEXT, and as such cannot be added as a object into the infostructure.
    I would suggest you try building a new fieldcatalog, in which you could try introducing the field TDLINE from table TLINE. I dont know if this would work, but you could try.
    Otherwise, I think the only way to read the text would be by writing a program to do so.
    Hope this helps.
    Sudha

  • To send sales order header text in mail description

    Hi all,
    my requirement is to send the sales order header texts(which have text ids as 0001,002,003 and text object :VBBK) as the description in the mail step.
    Please help me.
    Regards,
    Sravanthi Chilal

    thank u swami,it is working.
    but in the sales order i have maintained 3 texts(0001,0002,0003). while i execute the method individually,i am able to see all 3 texts.
    i created a background activity before calling the decision step for determining the texts.iam displaying that container element in the description of the decision step.
    my problem is that iam able to see only one text,i should be able to see all three.
    i hope iam clear.
    Regards,
    Sravanthi Chilal

  • How the sales order header status update?

    Hello,
    In the sales order header "STATUS" tab is there, under this status tab we can find OBJECT status if we click that object status it shows the Object number,Object category,status profile and status with status no. on which bases this status will update in the sales order header?
    my case is Status "10-xxxx" set automatically for some orders.
    Could you plz let me know on which bases, the status will be updated in the sales order?
    Regards|KS

    Hi
    SAPu2019S GENERAL STATUS MANAGEMENT FUNCTIONALITY
    General Status Management replaced order status management functionality in recent SAP releases (4.6C).  This discussion will address general status management, as this is how SAP allows user statuses for controlling objects in this and future releases.
    General Status Management applies to internal orders, project definitions, WBS elements, production orders and many other objects in SAP.  For the purposes of this discussion we will concentrate on status management for internal orders and WBS elements.  A list of all objects relevant for status management will be made available upon request.
    A status is an indicator that fulfills two functions.  First, it informs you that a particular status has been reached.  For example, an internal order has been created and released; a settlement rule has been entered; a particular business transaction has been executed, etc.  Second, it influences the business transactions you can perform for a particular status.  A status can allow a business transaction; allow a business transaction but issue a warning message; or prohibit a business transaction altogether.  If a warning message is issued it is up to the user whether the business transaction is carried out or not.
    Statuses can be used to control and communicate.  Statuses can be used in reporting (show me a report of all internal orders with a status of TECO, or technically complete).  Statuses can be used as selection criteria (select all internal orders with a status of CLSD, or closed).  Statuses can communicate the state of an object (ready for archiving, not ready for settlement execution).
    There are SAP standard delivered statuses that apply to all object types.  These are known as SYSTEM STATUSES.  CRTD, REL, SETC, TECO are examples of SAP standard system statuses.  SAP standard system statuses cannot be removed from use.  You cannot override the SAP system status with a user status.  You cannot change the behavior of an SAP system status.
    User statuses (or user defined statuses) exist in addition to SAP standard statuses.  User statuses are intended to augment or refine SAP standard statuses, not replace them.  There is no limitation to the number of user statuses that can be created.  Both system and user statuses influence business transactions in the same way.
    An object can have multiple statuses active at the same time.  A plant maintenance order can have released, preliminarily costed, work order printed and confirmed statuses all at the same time.  For SAP display purposes only one status can be displayed on the status line in master data screens, but it is possible to see all active statuses for an object at one time by drilling down into the master data screens.
    A STATUS PROFILE, or user status profile, contains individual user statuses and the business transaction rules defined for those statuses.  There is no limit to the number of user status profiles that can be maintained in SAP.  A user status profile is assigned to an order type or a project profile in configuration.  This user status profile is then defaulted into all objects that reference that order type or project profile.  A users status profile can be overwritten (or deleted) in an individual object (via native master data screens), but only if a user status has yet to be activated for that particular object.  Once a user status has been activated for that object the user status profile cannot be changed.
    HOW STATUS MANAGEMENT WORKS
    When an object (internal order, WBS element, production order) is created SAP assigns the system status CRTD.  MIT automatically releases the order, so the system status REL is also activated.  If there is a user status profile defined in the order type (or project profile) this is carried over into the internal order (or WBS element).  If not, only the SAP system statuses will apply to this object.
    When a user executes a business transaction for this object, SAP checks the user status to see if that business transaction can be executed without any additional influence from a user status, can be executed but with a warning message being issued, or cannot be executed at all.  SAP also checks whether the business transaction sets or deletes any other user statuses within the user status profile.
    A user status may also be maintained directly in the object master data.  Accessing the master data screens allows a user to manually maintain user statuses.  If necessary, an authorization code can be assigned to a user status to ensure that no unauthorized persons can change the status of an object.  Once changed, the new user status is fully active and acts no differently than if a business transaction set the user status.
    Status management and business transaction control only work with standard SAP transactions.  Z transactions will not show up on the business transaction list for an object.  The business transaction table is configurable, but SAP strongly recommends not changing that table.  SAP directly updates that table via support packs and it is often impacted during upgrades.
    Authorization codes / keys are available in user statuses.  The authorization code is checked only when user statuses are being set manually, from within the objectu2019s master data screens.  This ensures the user has the proper authorization to set that status for that particular object.  However, it is important to understand that SAP sets a user status in reaction to a business transaction it does not perform an authorization check.

  • Third Party : Sales order Header text should copy to PO Header text

    Hi,
    I need to copy sales order header text to PO Header text
    in the third Party sales order scenario.
    Can anybody suggest how to do it.
    Thanx in advance.
    Regards,
    RRS.

    I doupt that this is possible without using a user exit.
    The 3rd sales order will create a PR, the PR has no header text (just a header note = internal use), the PO is created in reference to the PR. And it is not possible to copy PR header text to PO header text.

  • Bdc for sales order header text

    we need to write a bdc program for va01. In that we need to
    upload header text also .
    So please kindly tell me how to upload flat file to va01 along with
    header text.And how we need to declare the flat file.
    if it is not possible through bdc then tell me how to do with bapi.
    thank you so much for all the replies

    Hi,
      Using BDC, You can not uplaod sales order header text. You can upload the header text using FM
    CREATE_TEXT.
    Here giving sample code. This code is written for Material master text. You change this code according to your requirement
    REPORT ZMM_INSERT_LONGTEXT.
    *Internal table to hold long text...
    DATA:
      BEGIN OF T_UPLOAD OCCURS 0,
        MATNR LIKE MARA-MATNR,             " Material number
        ID(2) TYPE C,                      " Identification
        LTEXT LIKE TLINE-TDLINE,           " Long text
      END OF T_UPLOAD,*Internal table to hold long text....
      T_LINE LIKE TLINE OCCURS 0 WITH HEADER LINE.DATA:
       W_GRUN LIKE THEAD-TDID ,            " To hold id
       W_OBJECT LIKE THEAD-TDOBJECT VALUE 'MATERIAL',
                                           " To hold object id
       LV_VALUE(70).                       " Value to hold material number
    START-OF-SELECTION.* This perform is used to upload the file
      PERFORM UPLOAD_FILE.* This perform is used to place the text in MM02 transaction
      PERFORM PLACE_LONGTEXT.
    *&      Form  create_text
    *  This routine used to create text in MM02 transaction
    *  Passed the parameter w_grun to P_C_GRUN
    *                 and lv_value to P_LV_VALUE
    FORM CREATE_TEXT  USING    P_C_GRUN
                               P_LV_VALUE.  DATA:
        L_ID LIKE THEAD-TDID,
        L_NAME(70).  MOVE : P_C_GRUN TO L_ID,
             P_LV_VALUE TO L_NAME.  CALL FUNCTION 'CREATE_TEXT'
           EXPORTING
             FID               = L_ID
             FLANGUAGE         = SY-LANGU
             FNAME             = L_NAME
             FOBJECT           = W_OBJECT
    *      SAVE_DIRECT       = 'X'
    *      FFORMAT           = '*'
           TABLES
             FLINES            = T_LINE
          EXCEPTIONS
            NO_INIT           = 1
            NO_SAVE           = 2
            OTHERS            = 3
      IF SY-SUBRC <> 0.
        CLEAR LV_VALUE.
      ELSE.
        DELETE T_LINE INDEX 1.
      ENDIF.ENDFORM.                    " create_text*&---------------------------------------------------------------------*
    *&      Form  upload_file
    *  This routine is used to upload file
    *  No interface parameters are passed
    FORM UPLOAD_FILE .  CALL FUNCTION 'UPLOAD'
       EXPORTING
    *     CODEPAGE                      = ' '
    *     FILENAME                      = ' '
          FILETYPE                      = 'DAT'
    *     ITEM                          = ' '
    *     FILEMASK_MASK                 = ' '
    *     FILEMASK_TEXT                 = ' '
    *     FILETYPE_NO_CHANGE            = ' '
    *     FILEMASK_ALL                  = ' '
    *     FILETYPE_NO_SHOW              = ' '
    *     LINE_EXIT                     = ' '
    *     USER_FORM                     = ' '
    *     USER_PROG                     = ' '
    *     SILENT                        = 'S'
    *   IMPORTING
    *     FILESIZE                      =
    *     CANCEL                        =
    *     ACT_FILENAME                  =
    *     ACT_FILETYPE                  =
        TABLES
          DATA_TAB                      = T_UPLOAD
         EXCEPTIONS
           CONVERSION_ERROR              = 1
           INVALID_TABLE_WIDTH           = 2
           INVALID_TYPE                  = 3
           NO_BATCH                      = 4
           UNKNOWN_ERROR                 = 5
           GUI_REFUSE_FILETRANSFER       = 6
           OTHERS                        = 7
      IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.  SORT T_UPLOAD BY MATNR ID.
    ENDFORM.                    " upload_file
    *&      Form  place_longtext
    *  This routine places the text in MM02 transaction
    *  No interface parameters are passed
    FORM PLACE_LONGTEXT .  LOOP AT T_UPLOAD.    T_LINE-TDFORMAT = 'ST'.
        T_LINE-TDLINE = T_UPLOAD-LTEXT.
        APPEND T_LINE.    IF T_UPLOAD-ID EQ 'BT'.
          MOVE T_UPLOAD-MATNR TO LV_VALUE.
          MOVE 'GRUN' TO W_GRUN.                   "Test ID for Basic data text
          PERFORM CREATE_TEXT USING W_GRUN LV_VALUE.
        ENDIF.    IF T_UPLOAD-ID EQ 'IT'.
          CLEAR W_GRUN.
          MOVE T_UPLOAD-MATNR TO LV_VALUE.
          MOVE 'PRUE' TO W_GRUN.                      "Test ID for Inspection text
          PERFORM CREATE_TEXT USING W_GRUN LV_VALUE.
        ENDIF.    IF T_UPLOAD-ID EQ 'IC'.
          CLEAR W_GRUN.
          MOVE : T_UPLOAD-MATNR TO LV_VALUE,
                 'IVER' TO W_GRUN.                    
                                                      "Test ID for Internal comment
          PERFORM CREATE_TEXT USING W_GRUN LV_VALUE.
        ENDIF.
      ENDLOOP.ENDFORM.                    " place_longtext

  • Error with sales order header text

    Hi All,
    I am getting 3 texts from 850 IDOC on to Sales order header texts. I created 3 new textid's for them. This is working properly in Dev system and I just moved them to Test system. I created a sales order by using the IDOC. I tried to go to order header texts and it is giving me the error saying 'Error in opening text file'.
    "The SD_WORD_PROCESSING function module is for creating the "Maintain Text" dialog box. You have called up the function module with the wrong values so it is not possible to edit text properly.
    Check the parameters for the SD_WORD_PROCESSING_PUT function module."
    Please help me to solve this issue.
    Thanks,
    Veni.

    Hi Naren,
    I was just checking my Transport organizer and found that there is one customizing request which is still in modifiable mode, not released yet. It is related to Access Sequence for text id's. I forgot to move this, is this the one causing the error.
    Thanks,
    Veni.
        5  View Cluster Maintenance: Data          
            5  VC_SHPH                                                                               
    5  TTXERN                                                                               
    400VBBK      BZ20021009     
                       400VBBK      BZ20022010     
                       400VBBK      BZ20023011     
        5  IMG Activity  Define Text Types         
            5  View Cluster Maintenance: Data      
                5  VC_ORDH                                                                               
    5  TTXERN                                                                               
    400VBBK      AZ10021009 
                           400VBBK      AZ10022010 
                           400VBBK      AZ10023011 
                    4  TTXZ                        
                    4  TTXZT

  • System should Not copy sales order header text

    Hi all,
    My requirement is system should not copy sales order header text while copying sales order to sales order with same order type.
    for example i have order type OR - standard type with 500 line items with reference to that same sales order we are creating another order with same line 500 line items,but requirement is system should not copy source document header text in to target document header text,
    Do you have any standard functionality to avoid this or we need to go exit
    Regards
    Nishad

    Hi,
    You can do it via standard SAP configuration.
    Transaction VOTXN.
    In the access sequence you have the corresponding Text ID added with "Text Object" VBBK. That's the reason why you are copying text.
    Change the entry.
    Check below link on how exactly to do that. This doc says about how to copy customer text to the sales order. But procedure is same for you as well. Just the object is different.
    [Text type config|http://learnsaptips.blogspot.com/2010/09/text-type-configuration-in-sap.html]
    Hope it helps!
    Best regards,
    Rahal

  • Sales Order Header texts

    Hi All,
    I am getting 3 texts from 850 IDOC on to Sales order header texts. I created 3 new textid's for them. This is working properly in Dev system and I moved them to Test system.
    In Test system I checked the header texts, only the following text id's are comming. They do not have any data and remaining textid's are not comming.
    DEV
    Form Header
    Header note 1
    Header note 2
    Shipping instructions EN
    SAC code C000
    SAC code I410
    SAC code E740
    Carrier requested by customer
    PST EN
    PED EN
    ZTR EN
    TEST
    PST
    PED
    ZTR
    I went to VOTXN and checked sales order header texts ->  Textprocedure -> Z1-Order Text Procedure, Text Id's in this procedure, I see 11 ID's there in Dev and in test system I see only PST, PED and ZTR. I created these three in text object VBBK sales docu header. It is working fine in Dev and when I move these to Test system only these 3 id's are showing up. I wrote the code for this in ZXVEDU06. How come the remaining Id's are not showing here and values are not comming for these 3 Text Id's.
    Can Someone please help me with this.
    Thanks,
    Veni.

    Hi Bhasker and Bill,
    Thankyou for your valuable information.
    Bhasker, I added all texts again and trasported. Now in test system I can see all of them.
    I commented out all the code in ZXVEDU06 and created a sales order, as you said it picked up all the texts automaticaaly. This is the first time I am doing this work, so by someone's suggestion in SDN I created the include and wrote the code in ZXVEDU06.
    It is working fine for this customer but if I try to create sales orders for other customers then I am getting the following error.
    I/O error for text VBBK 0023 EN
    I/O error for text &1 &2 &3 &4
    Message no. TD607
    Diagnosis
    You want to read a text from the database, delete it, or save it to the database.
    System Response
    An error occurred when the database was accessed.
    Procedure
    Try repeating the procedure. If the error recurs, contact your system administrator.
    Can someone please help me with this problem.
    Thanks,
    Veni.

  • How-to extend the Sales Order with the Project ID?

    Hello ByD Community,
    My problem is the following:
    I want to add an extension field to the Sales Order Header, which would be the Project ID assigned to this Sales Order.
    My use case only involve one Project ID per Sales Order, and the task will be the same from a Line Item to another. So I can only use the GetFirst() to retrieve only the first Line Item.
    Past week, I asked a similar question for the Purchase Orders and I succeeded to do it after a hint from Dan!
    As for the Purchase Order, I thought the Project Assignment was built through the SalesOrder.Item.ItemAccountingCodingBlockDistribution.AccountingCodingBlockAssignment.ProjectReference, but it seems that it is different.
    So as soon as I try to check if this Association IsSet() it just returns me that it is not!
    I succeeded to bluntly push the TaskUUID in my Extension field for testing purpose, without any check and verification, but not the Project ID neither with good validations.
    I also tried to see with the SalesItem Association instead of the Item Node, but it is the same. Any time I try a different check it returns me the N/A for my field, which is my last condition if the association is not set! What is driving me crazy is that you have the Project ID is shown on the top of the Sales Order, but I just cannot find how to retrieve it in the Studio!!!
    Here is my sample code in my After-Modify event (I also tried with a On-Save) where the ProjectIDSalesOrder is my extension field in the Cloud Solution:
    import ABSL;
    if (this.Item.GetFirst().ItemAccountingCodingBlockDistribution.IsSet())
      if (this.SalesItem.GetFirst().ItemProduct.ProductCategoryHierarchyProductCategoryIDKey.ProductCategoryInternalID.Matches("130"))
           this.ProjectIDSalesOrder = this.SalesItem.GetFirst().ItemServiceTerms.ProjectTaskUUID.content.ToString();
         /*what I need actually is : this.ProjectIDSalesOrder =      this.Item.ItemAccountingCodingBlockDistribution.AccountingCodingBlockAssignment.GetFirst().ProjectReference.ProjectID.content;*/
      else {this.ProjectIDSalesOrder = "No project assigned";}
    else {this.ProjectIDSalesOrder = "N/A";}
    If anybody could help me on this, it would be greatly appreciated.
    Thank you community!
    Best regards.
    Jacques-Antoine

    Hello all,
    To follow up on this issue, I found that a QueryByElements is available in the SalesOrderOverview node. And we can Query the SalesOrder by ProjectID.
    Fine! However, we cannot retrieve the ProjectID. It is never proposed as a result in the Query. We can query againt a ProjectID but not retrieve it.
    As the ItemAccountingblockDistribution association seems to never be set, we can't retrieve the ProjectID from it neither.
    I will post an incident to see if the ProjectID can be released as an entity in the SalesOrderOverview. QueryByElements results, so as to be able to use it.
    Thanks for your attention.
    Jacques-Antoine

Maybe you are looking for