How to Trigger Text Determination in SD_SALESDOCUMENT_CREATE

Hi ABAP Experts,
I mantained a Text Determination Procedure in order to copy a Text from Customer Master Data to the Sales Document Header.
The Text Determination works perfectly using VA01, but when I use FM SD_SALESDOCUMENT_CREATE  to create my sales document, the text object is not copied from Customer Master Data to the Sales Order Header.
I appreciate any suggestion,
Tks.

Hi Diego,
Try to pass the text through sales header fm and check whether it is creating or not.Then you will get an idea about the issue.
Regards,
Madhu.

Similar Messages

  • 'How to trigger Material determination again' when Price group changes

    Hi All,
    I have a requirement like this
    1. I have a line item for which the material detemination is done based on condition records.
         Say the order has been saved now.
    2. Now, for this line item if I change the price group (Double click on line item ->Sales B), the material dermination should trigger again.
    3. I know that the FM PRODUCT_SUBSTITUTION  would be used to determine the material.
    4. But, where exactly should I call this again?
    Please let me know if there is any user exit available for this.
    Thanks,
    Babu Kilari

    No. I have not got the solution for this. Luckily, requirement got changed. So, couldnot invest much time on this.
    But, I think you need to write the code in MV45AFZZ(USEREXIT_MOVE_FIELDS_TO_KOMP). Not sure. Please check it
    Thanks,
    Babu Kilari

  • How to change the determination of text procedure for campaigns

    Hi all,
    we want to have different text determination procedures for our different campaign types.
    I checked the customizing, for the text object CGPL_TEXT there are many text determination procedures possible. However, I was not able to figure out where the the textproc is assigned.
    The next step was to check the coding, where we found a method  in GSTEXT: IF_BSP_WD_TOOLBAR_CALLBACK~GET_BUTTONS. There the textproc is read by typed_context->attr->read_textproc( ). The result is always CPG.
    Unfortunately, we were not able to find the place where the attribute is set.
    How can we have different textprocs for our campaign types? How and where is the text determination procedure set for campaigns?
    Thank you very much in advance and best regards,
    Stefan

    You can use span HTML tag.
    For example, if your label is "Product Name", and you want it to appear in red, you can type this:
    <span style="color:red">Product Name</span>Hope it helps.
    Ravi

  • How to get Text for nodes in Tree Structure

    Hi Friends,
    How to get Text for nodes in Tree Structure
    REPORT  YFIIN_REP_TREE_STRUCTURE  no standard page heading.
                       I N I T I A L I Z A T I O N
    INITIALIZATION.
    AUTHORITY-CHECK OBJECT 'ZPRCHK_NEW' :
                      ID 'YFIINICD' FIELD SY-TCODE.
      IF SY-SUBRC NE 0.
        MESSAGE I000(yFI02) with SY-TCODE .
        LEAVE PROGRAM.
      ENDIF.
    class screen_init definition create private.
    Public section
      public section.
        class-methods init_screen.
        methods constructor.
    Private section
      private section.
        data: container1 type ref to cl_gui_custom_container,
              container2 type ref to cl_gui_custom_container,
              tree type ref to cl_gui_simple_tree.
        methods: fill_tree.
    endclass.
    Class for Handling Events
    class screen_handler definition.
    Public section
      public section.
        methods: constructor importing container
                   type ref to cl_gui_custom_container,
                 handle_node_double_click
                   for event node_double_click
                   of cl_gui_simple_tree
                   importing node_key .
    Private section
      private section.
    endclass.
    *&                        Classes implementation
    class screen_init implementation.
    *&                        Method INIT_SCREEN
      method init_screen.
        data screen type ref to screen_init.
        create object screen.
      endmethod.
    *&                        Method CONSTRUCTOR
      method constructor.
        data: events type cntl_simple_events,
              event like line of events,
              event_handler type ref to screen_handler.
        create object: container1 exporting container_name = 'CUSTOM_1',
                       tree exporting parent = container1
                         node_selection_mode =
                cl_gui_simple_tree=>node_sel_mode_multiple.
        create object: container2 exporting container_name = 'CUSTOM_2',
        event_handler exporting container = container2.
    event-eventid = cl_gui_simple_tree=>eventid_node_double_click.
        event-appl_event = ' '.   "system event, does not trigger PAI
        append event to events.
        call method tree->set_registered_events
             exporting events = events.
        set handler event_handler->handle_node_double_click for tree.
         call method: me->fill_tree.
      endmethod.
    *&                        Method FILL_TREE
      method fill_tree.
        data: node_table type table of abdemonode,
              node type abdemonode.
    types:    begin of tree_node,
              folder(50) type c,
              tcode(60) type c,
              tcode1(60) type c,
              tcode2(60) type c,
              text(60) type c,
              text1(60) type c,
              text2(60) type c,
              end of tree_node.
      data:  wa_tree_node type tree_node,
                t_tree_node type table of tree_node.
    wa_tree_node-folder = text-001.
    wa_tree_node-tcode  = text-002.
    wa_tree_node-text =  'Creditors ageing'.
    wa_tree_node-tcode1 = text-003.
    wa_tree_node-text1 =  'GR/IR aging'.
    wa_tree_node-tcode2 = text-004.
    wa_tree_node-text2 =  'Bank Balance'.
    append wa_tree_node to t_tree_node.
    clear wa_tree_node .
    wa_tree_node-folder = text-005.
    wa_tree_node-tcode  = text-006.
    wa_tree_node-text =  'Creditors ageing'.
    wa_tree_node-tcode1 = text-007.
    wa_tree_node-text1 =  'Creditors ageing'.
    wa_tree_node-tcode2 = text-008.
    wa_tree_node-text2 =  'Creditors ageing'.
    append wa_tree_node to t_tree_node.
    clear wa_tree_node .
    wa_tree_node-folder = text-009.
    wa_tree_node-tcode  = text-010.
    wa_tree_node-text =  'Creditors ageing'.
    wa_tree_node-tcode1 = text-011.
    wa_tree_node-text1 =  'Creditors ageing'.
    wa_tree_node-tcode2 = text-012.
    wa_tree_node-text2 =  'Creditors ageing'.
    append wa_tree_node to t_tree_node.
    clear wa_tree_node .
    node-hidden = ' '.                 " All nodes are visible,
        node-disabled = ' '.               " selectable,
        node-isfolder = 'X'.                                    " a folder,
        node-expander = ' '.               " have no '+' sign forexpansion.
        loop at t_tree_node into wa_tree_node.
          at new folder.
            node-isfolder = 'X'.                      " a folder,
            node-node_key = wa_tree_node-folder.
                   clear node-relatkey.
            clear node-relatship.
            node-text = wa_tree_node-folder.
            node-n_image =   ' '.
            node-exp_image = ' '.
            append node to node_table.
          endat.
         at new tcode .
            node-isfolder = ' '.                          " a folder,
            node-n_image =   '@CS@'.       "AV is the internal code
            node-exp_image = '@CS@'.       "for an airplane icon
            node-node_key = wa_tree_node-tcode.
             node-text = wa_tree_node-text .
                     node-relatkey = wa_tree_node-folder.
            node-relatship = cl_gui_simple_tree=>relat_last_child.
          endat.
          append node to node_table.
        at new tcode1 .
            node-isfolder = ' '.                          " a folder,
            node-n_image =   '@CS@'.       "AV is the internal code
            node-exp_image = '@CS@'.       "for an airplane icon
            node-node_key = wa_tree_node-tcode1.
                     node-relatkey = wa_tree_node-folder.
            node-relatship = cl_gui_simple_tree=>relat_last_child.
              node-text = wa_tree_node-text1.
         endat.
          append node to node_table.
           at new tcode2 .
            node-isfolder = ' '.                          " a folder,
            node-n_image =   '@CS@'.       "AV is the internal code
            node-exp_image = '@CS@'.       "for an airplane icon
            node-node_key = wa_tree_node-tcode2.
                     node-relatkey = wa_tree_node-folder.
            node-relatship = cl_gui_simple_tree=>relat_last_child.
            node-text = wa_tree_node-text2.
         endat.
          append node to node_table.
        endloop.
        call method tree->add_nodes
             exporting table_structure_name = 'ABDEMONODE'
                       node_table = node_table.
      endmethod.
    endclass.
    *&                        Class implementation
    class screen_handler implementation.
    *&                        Method CONSTRUCTOR
      method constructor.
       create object: HTML_VIEWER exporting PARENT = CONTAINER,
                      LIST_VIEWER exporting I_PARENT = CONTAINER.
      endmethod.
    *&                 Method HANDLE_NODE_DOUBLE_CLICK
      method handle_node_double_click.
      case node_key(12).
    when 'Creditors'.
    submit YFIIN_REP_CREADITORS_AGING  via selection-screen and return.
    when  'Vendor'.
    submit YFIIN_REP_VENDOR_OUTSTANDING  via selection-screen and return.
    when 'Customer'.
    submit YFIIN_REP_CUSTOMER_OUTSTANDING  via selection-screen and
    return.
    when 'GR/IR'.
    submit YFIIN_REP_GRIR_AGING  via selection-screen and return.
    when 'Acc_Doc_List'.
    submit YFIIN_REP_ACCOUNTINGDOCLIST  via selection-screen and return.
    when 'Bank Bal'.
    submit YFIIN_REP_BANKBALANCE  via selection-screen and return.
    when 'Ven_Cus_Dtl'.
    submit YFIIN_REP_VENDORCUST_DETAIL via selection-screen and return.
    when 'G/L_Open_Bal'.
    submit YFIIN_REP_OPENINGBALANCE via selection-screen and return.
    when 'Usr_Authn'.
    submit YFIIN_REP_USERAUTHRIZATION via selection-screen and return.
    endcase.
      endmethod.
    endclass.
    Program execution ************************************************
    load-of-program.
      call screen 9001.
    at selection-screen.
    Dialog Modules PBO
    *&      Module  STATUS_9001  OUTPUT
          text
    module status_9001 output.
      set pf-status 'SCREEN_9001'.
      set titlebar 'TIT_9001'.
      call method screen_init=>init_screen.
    endmodule.                 " STATUS_9001  OUTPUT
    Dialog Modules PAI
    *&      Module  USER_COMMAND_9001  INPUT
          text
    module user_command_9001 input.
    endmodule.                 " USER_COMMAND_9001  INPUT
    *&      Module  exit_9001  INPUT
          text
    module exit_9001 input.
    case sy-ucomm.
    when 'EXIT'.
      set screen 0.
    endcase.
    endmodule.
            exit_9001  INPUT

    you can read  the table node_table with nody key value which imports when docubble click the the tree node (Double clifk event).
    Regards,
    Gopi .
    Reward points if helpfull.

  • Replication of text determination (business partner) between ERP and CRM

    Hello,
    in ERP I have maintained a text determination procedure Z1 and assigned it to the text object "KNA1". The textprocedure include the Text ID's "Z011" and "Z020".
    In CRM exist the text object "KNA1" and "BUT000". I have customized a a text determination procedure "Z1" and the same Text ID's as in ERP, to booth text objects.
    The text ID's don't be replicated, no matter i maintain it in CRM or ERP.
    Can anybody tell me, how can I replicate the content of the text ID's? What is the relevant text object in CRM?
    Thanks for help
    Regards
    Andreas

    Andrea,
    There are objects for replicating the data between CRM and CDB.
    CRM_DNL_TTXOB  and CRM_DNL_TTXID.
    But none for replication between R/3 and CRM. WE need to maintain it manually.
    Regards,
    Aj.

  • How to get text when mousing over image?

    Hey there, I am extremely new to Flash, but know other Adobe programs so tend to learn quickly.
    I desperately need to find out how to get text to pop up when i mouse over PART of the image and i havent been able to find any help online in the last two days (pulling my hair out in stress).
    Now i uploaded a rough mock up i did on Photoshop, so you can see when i mouseover the top layer of the cake i need a line to stretch out and the text to pop up at the end of it. Similarly if i moused over the cherry another piece of text needs to come up in the same manor.
    Also since i need it to be a website link so what format do i open it with when i go to FILE- NEW?
    Honestly thank you so much in advance to anyone that helps

    First you have to choose if you want to handle devices. If not and you want to stay in Flash I'll stick on topic.
    In the HTML version you could either use a good old fashioned image map (they're still fine in the HTML5 era) or you could use a layering technique (here's a random layering example).
    In Flash you can do it a few different ways. If you intend on keeping the image intact as a single object then you'll be essentially doing the same as an image map. You can draw invisible hitareas on the various parts of the object and have those areas trigger a specific function that will display your text. If you break up the image into the separate parts then you can directly assign those parts to fire off a function themselves.
    First I'd like to know your desired direction.

  • How to trigger top-of-page in ALV Grid

    How to trigger Top-Of-Page in ALV Grid...
    can any one plese send the sample code...
    thanks.

    here is sample code. try this. u need to build an internal table and then call function commentary write and pass that internal table.
    *&      Form  TOP_OF_PAGE
          Top_of_page
    FORM top-of-page.                                           "#EC CALLED
    *ALV Header declarations
      DATA: lit_header TYPE slis_t_listheader,
            lwa_header TYPE slis_listheader.
    Title
      lwa_header-typ  = 'H'.
      lwa_header-info = text-013.
      APPEND lwa_header TO lit_header.
      CLEAR lwa_header.
    BOM Number
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
        EXPORTING
          input  = p_matnr
        IMPORTING
          output = gv_matnr.
    Pass BOM number
      lwa_header-typ  = 'S'.
      lwa_header-key = text-014.
      lwa_header-info = gv_matnr .
      APPEND lwa_header TO lit_header.
      CLEAR: lwa_header ,
             gv_matnr .
    BOM description
      lwa_header-typ  = 'S'.
      lwa_header-key = text-015 .
      lwa_header-info = gv_maktx .
      APPEND lwa_header TO lit_header.
      CLEAR: lwa_header.
    start/end date format MM/DD/YY
      lwa_header-typ  = 'S'.
      lwa_header-key = text-016 .
      CONCATENATE s_erdat-low+4(2) '/'
                  s_erdat-low+6(2) '/'
                  s_erdat-low(4) ' - '
                  s_erdat-high+4(2) '/'
                  s_erdat-high+6(2) '/'
                  s_erdat-high(4)
                  INTO lwa_header-info.
      APPEND lwa_header TO lit_header.
      CLEAR: lwa_header.
    Run Date of Report format MM/DD/YY
      lwa_header-typ  = 'S'.
      lwa_header-key = text-017 .
      CONCATENATE  sy-datum+4(2) '/'
                   sy-datum+6(2) '/'
                   sy-datum(4) INTO lwa_header-info .
      APPEND lwa_header TO lit_header.
      CLEAR: lwa_header.
    call function REUSE_ALV_COMMENTARY_WRITE to use TOP_OF_PAGE event.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          it_list_commentary = lit_header.
    ENDFORM .                              " FORM top-of-page.

  • How to trigger IDOC in a batch job?

    hi,
    My requirement is that a batch job must run on R/3 side to check if bank data are created or changed.Any creation or update in table BNKA will trigger an IDOC
    If a record is created IDOC BANK_CREATE01 should be triggered and
    If a record is changed/deleted IDOC BANK_CHANGE01 should be triggered
    A background program should run periodically (every hour) and check the table CDHDR for object class BANK.
    The program must check if any new entry exist in the table since the last run.
    New records can be identified according to the fields UDATE and UTIME.
    According to the change indicator (CHANGE_IND) the program will determine if the IDOC_CREATE (changeID=I) should be run or IDOC_CHANGE (changeID=U or D).
    If change ID=D, then deletion indicator will be set in the CHANGE IDOC.
    Can anybody tell me how will i write the code for this and how to trigger IDOc as i very basic knowledge in ABAP
    Thanks & Regards,
    Loveena

    hi
    whenever changes made to an application document.u want to replicate these changes in target system u have to work with cahngepointers
    RBDMIDOC is the program which u have to schedule background
    regards
    Nagesh.Paruchuri

  • Text determination for different languages

    how to set up text determination of different languages based on the customer country location.What is the configuration?
    Thanks for your help,
    Andy

    hi,
    it is not related to customer.
    it depends on LOG ON LANGUAGE.
    if you have not given any thing it will be in ENGLISH.
    hope this clears your issue
    balajia

  • Text determination procedure with sales doc type

    For the Sales Doc type 'OR' , I am getting TEXT automatically in the Sales Order Header data , TEXT tab page.
    Can Any one tell me how can I remove the text, when i create sales order.
    Or please can any one give me the document or link or explain how the text determination procedure with sales doc type.

    Hi Sanjay,
    Thanks for your help.
    I managed to go there but I am really confused of what changes I have to do there.
    If you dont mind can you explain a bit in detail.
    Sorry for the trouble

  • Problem in text determination

    Hi all,
         I have entered the sales text in XD02 of a particular customer . It get saved when I have saved it. But when I open it again It does not display What I have entered in the  sales text.
        My question if there is any prequisites for the  texts to be  saved or, Whether we have to add any standard text in the texts.
        Also How to make the sales text to be displayed in sales order that have been created for this  particular customer.
        Could any one of you please solved my problem.
    Thanks in advance,
    Regards,
    S.Jenibalet.

    Hi,
    Pls review the settings under the following SPRO node:
    SPRO>Sales& Distbn>Basic Fns>Text control>Define And Assign Text Determination Procedures
    Pls review the procedure assigned to the account group for enabling sales text in customer master and review the proc assigned to Sales doc type for texts in sales order.
    This is the only place that concerns your question and spend some time here.
    Once everything is assigned properly - Procedure, text types, access sequence and assignment to text objects - your text will flow to sales order apart from appearing in the customer master.
    Hope, this helps!
    Thanks,
    Siva

  • Billing text determination to Invoice Form

    Hi,
    How can we get the texts in the billing document header copied into Invoice Form.
    Say we have text "xxxxxxx" in the billing document header which came from text determination. We need this text "xxxxxxx" into the Invoice form.
    Please check and advise.
    Regards,

    Hi
    If you want to copy the header texts into billing form then in the smartform include the logic that the text type should get picked in the smartform..Then it is possible to get in the invoice form
    Regards
    Srinath

  • Text Determination at sales order item level (VBBP)

    We use a Z text ID (Z005) at our sales order item text determination procedure, which refers to text object VBBP.
    Access sequence carries only this line.
    Ideally, if the text object is VBBP, the source of the text is from sales doc (like Quote to Order). Correct me if I'm wrong.
    Issue:
    When creating quote/sales order for configuration (variant) items, texts get automatically filled in this text id.
    We verified material master, BOM master to validate the text source. however, no texts are maintained on those.
    We would like to know how these are filled in automatically.
    However these phantom texts are same and does not change for items.

    Hi Nigesh,
    Look at the text id in some other procedure like for KNVV, KNVP, KNA1 etc for customer. May be the text is flowing from customer or even material to the sales order automatically.
    In this case, teh text ID and access sequence will be same in that level namelyKNVV, KNVP, KNA* etc. So you better check there and your problem will be solved.
    If that is not the case, pls lemme know.

  • Text Determination in Sales & Service Transactions

    Hello Guru's,
    We have a Text Determination Procedure in Place for our Sales and Service Transactions.
    Now my users can enter text and and modify it by re-opening the actvity.
    How do i force them to enter new text only???
    regards
    Amar Reddy

    Hi,
    1. Text type - A002, Desc - Note
        Under 'Definition of Procedure'
        Sequence - 0020
        Changes - P
        Transfer Type - Not Yet Defined
    2. Text type - A008, Desc - Log
        Under 'Definition of Procedure'
        Sequence - 0030
        Changes - R
        Transfer Type - Not Yet Defined
    Reward points if helpful
    Shridhar

  • Text determination in invoice !

    Hi,
    I have an invoice which has been created in English language (output type = "EN"). However when I create a print out of this invoice the description of some items are printed in "Serbo-Croation" language. If I decide to print the same invoice in Serbo-Croation language (output type = "SH") all items on the invoice print out are displayed in English language.
    Can anybody tell me how is the standard SAP text determination works on Invoices.
    Thanks in advance
    Kami

    It's not specific to the invoices. Normally, when you request an output in certain language, the system first obtains the text elements in that language. For some elements, if they're not available in that language, they will be printed in the default language (English). This is to avoid blank space on the forms, I guess. So it's very important to maintain the translation consistenly.
    Having said that, material description is stored in master data, but is also copied to VBRP-ARKTX field. It's possible that the users logged on with 2 different languages, edited the same order and different descriptions were captured. I would check what data is in that field in the invoice in question.
    Additionally, have an ABAPer check the form. If a custom form is being used, it might not be working correctly.

Maybe you are looking for

  • Transferring apps from 1 library to another

    My wife & I currently have both our iphone 4 sync'd to the same library. This however means that all our apps & podcasts are shared also. I have created seperate libraries to try and resolve this, but cant figure out how to transfer the apps / podcas

  • Tolerance key PP - Lower limit

    We have configured tolerance key PP with lower limit of 0$ for both absolute and percentage. When I try to post the invoice with a lower price, I receive a warning message that the price is too low (which is correct). The problem is that when I try t

  • Language for my keyboard

    Hi everyone! I really could use your help. I have aT400 and Vista Business installed. The problem is that I can not find the good combination of language and keyboard. I live in the Netherlands but the normal combination Dutch (language) and VS Inter

  • Airport card reset on Powerbook 12

    Can one of you tell me how to reset my Airport card in my Powerbook12? Whenever I am trying to get onto my newly WEP protected network, I get a message saying that there was an error joining the network. When I do the same on my Powerbook15, I can ty

  • Time Machine showing different excluded directories in each account?

    I have two accounts on my Mac Mini running the latest OS X 10.6.  I have Time Machine backing up my files to a Time Capsule.  When I opened up the Options for Time Machine in my account, I see this: When I open the same dialog box in my other account