Sales Org Extension

Hi Experts,
I have one requirement where i need to show existing sales org , distribution channel to user , in addition to this i need to show some two additional fields  copy from sales org and copy from Distn Chnl . I need to show the existing sales org for the material being changed in the copy from Sales field  and existing Distn Chnl for that material . so that all the existing characterstics should copied to the new sales organization . please help me how to show the existing sales organisation in copy from sales organisation for a particular material . 
if i press F4 in Copy from existing Sales org field, i need to show all the existing Sales Organisation for the material being changed as available options.
i tried creating listbox but it didnt work. Please help me
Thanks in advance,
Shrikanth

Use FM F4IF_INT_TABLE_VALUE_REQUEST to show custom search help options.
*& Report  ZTEST_SOURAV15
REPORT ZTEST_SOURAV15.
TABLES: mara, marc.
PARAMETERS: matnr TYPE mara-matnr.
PARAMETERS: werks TYPE marc-werks.
TYPES : BEGIN OF ty_marc ,
werks TYPE marc-werks ,
END OF ty_marc.
DATA : it_marc TYPE STANDARD TABLE OF ty_marc.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR werks.
  DATA: l_i_dynpfields TYPE STANDARD TABLE OF dynpread INITIAL SIZE 0,
        l_wa_dynpfields  TYPE dynpread.
  l_wa_dynpfields-fieldname = 'MATNR'.
  APPEND l_wa_dynpfields TO l_i_dynpfields.
  CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
      dyname                         = sy-repid
      dynumb                         = sy-dynnr
*   TRANSLATE_TO_UPPER             = ' '
*   REQUEST                        = ' '
*   PERFORM_CONVERSION_EXITS       = ' '
*   PERFORM_INPUT_CONVERSION       = ' '
*   DETERMINE_LOOP_INDEX           = ' '
    TABLES
      dynpfields                     = l_i_dynpfields
   EXCEPTIONS
     invalid_abapworkarea           = 1
     invalid_dynprofield            = 2
     invalid_dynproname             = 3
     invalid_dynpronummer           = 4
     invalid_request                = 5
     no_fielddescription            = 6
     invalid_parameter              = 7
     undefind_error                 = 8
     double_conversion              = 9
     stepl_not_found                = 10
     OTHERS                         = 11
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
  READ TABLE l_i_dynpfields INTO l_wa_dynpfields
  WITH KEY fieldname = 'MATNR'.
  IF sy-subrc = 0.
    DATA l_matnr TYPE matnr.
    l_matnr = l_wa_dynpfields-fieldvalue.
    CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
      EXPORTING
        input        = l_matnr
      IMPORTING
        output       = l_matnr
      EXCEPTIONS
        length_error = 1
        OTHERS       = 2.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    SELECT werks FROM marc INTO TABLE it_marc WHERE matnr EQ l_matnr.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
      EXPORTING
        retfield    = 'WERKS'
        dynpprog    = sy-repid
        dynpnr      = sy-dynnr
        dynprofield = 'P_WERKS'
        value_org   = 'S'
      TABLES
        value_tab   = it_marc.
  ENDIF.
START-OF-SELECTION.
  WRITE: / ' this is for testing'.

Similar Messages

  • Creating Custom fields which are sales org dependent in Accounts Master

    Hello Experts,
    I want to create new custom fields in Accounts Master for sales and shipping.The component being used is BP_SALES.However when I try to create custom fields through AET, the new fields are added in the BUILHEADER context node.The problem with this is, its making the fields Sales Org independent.
    I want to add the fields which are sales org dependent( i.e. want to add the fields for the context nodes BUILSHIPPINGTERMS and BUILSALESARRANGEMENT).
    Please help me in this regards,
    Thanks and Regards,
    Rahim
    Edited by: Abdul Rahim on Dec 27, 2010 9:55 AM

    Hi Rahim,
    in general extension fields for Business Partner are only supported for the header fields (Table BUT000). Therefore the AET does not offer this.
    Table extension for BP sales data is supported by the AET beginning from CRM 7.0 eHP1. If you have this you can just create a 1:1 table enhancements and should be happy. If not I'm afraid that you would have to implement this manually.
    Using the Easy Enhancement Workbench (EEW) it would only be possible to create table extensions for the header and for relation ship but not for sales data.
    Regards Matthias

  • Purchase from diff. sales org.

    hi frnds
    A customer is from Delhi sales org. can he purchase from mumbai sales org?
    regards

    Hi ,
    U need to extend the customer to the new SO.
    Go to VD01 /XD01 n do the extension.
    Cheerz..
    Subbzz

  • Two sales org in One company code

    Hi all,
    I know u can assign two or more sales org to one company code.
    But if i have one common customer i.e one Customer No for both the Sales org's  how do I differentiate which open items belong to which sales org when running my open item report in FI. The Sales org data is not transfered to the FI Posting. Is a user Exit and diff numer ranges in SD the only possibility? is there no sap Standard for this.
    Thanks
    dave

    HI,
    Are Business areas/Division of this customer same?
    Reference number and allocation numbers are transferred to accounting documents.In customizing for copy control in billing,you can define which numbers will be copied as reference or allocation numbers.
    Like - Sales order number,delivery number and Billing documents etc...
    From sales order number you can know sales organization.
    The reference number is in the header of the accounting document and is used for clearing.
    The allocation number is in the customer line item and is used for sorting line numbers.
    Vrajesh

  • FBL5N Cleared items not having the Sales org

    Hi Guys,
    In FBL5n open items having the Sales org (XREF1), when we are clearing the Documents, Sales org (XREF1) not coming to the cleared items.
    Is any user exit or BADI to populate the value to Cleared items also?
    Thanks
    Gourisankar.

    Hi
    Cleared and open items should be the same, i.e open item are cleared item before clearing it.
    So I suppose u mean the items of clearing document?
    If it's so u should check your FI customizing because it should be a clearing rule, so perhaps it shlould be better to ask it to your FI consultant
    Max

  • Mass change - Move existing sales orders from Sales org A to Sales org B

    Good morning dear network,
    am seeking for your guidance on one specific matter.
    We are in the process of making changes to our billing / organisational structure (new sales orgs)
    One of the challenges is that we need to move existing open sales orders from one sales org to another (new) sales org.
    If all master records exist in the new sales org, is there a (technical) way of moving the existing sales orders from the current sales org into the new sales org, without having to replace each order individually ?
    would welcome any suggestions.
    Many thanks

    I would recommend to close the existing open sale orders by assigning Reason for Rejection and create new sale orders in the newly created sales organisation.
    This is due to the fact that you need to ensure each and field in the existing sale orders to match with the newly created sales organisation and it is bit time consuming.
    Still if you prefer to what you had indicated, LSMW is the better option
    thanks
    G. Lakshmipathi

  • How to extend Sales org for a material being Changed

    Hi Experts,
    i need to extend sales org , distribution Channel for a material .
    my table look like this and having 6 fields shown below
      1             2         3               4            5                     6
    Sales org | Des | Distn Chnl | desc |  Copy from So | Copy from Dstn Chnl
    If the user enters the existing value in Copy From SO and Copy Fron Distn Chnl  .  Then i need to copy all the values corresponding to the Existing SO and Distrn Chnl to the Newly entered Sales Org . 
    the table im displaying in ALV , if user perss F4 in copy From SO and Copy From Distn  , i need to show the existing values for the material being changed , this is working fine and i am able to get the existing values.
    After user selects one of the existing value for SO and Distrn channel  , i need to copy all the values to newly created So and distrn Chnl  .
    i dont know how to proceed . Please help me to solve this problem.
    Thanks,
    Shrikanth

    You can use AET to extend the sales area data of BP.  However, it wont add the fields automatically in GUI, But the generated fields are available in the relevant DB tables.
    BP GUI transaction is no more supported . Im not sure why you want to work on GUI.
    Regards,
    Shaik

  • Error : Sales Org.Unit does not have these attributes -- Urgent

    Hi, Team,
    I am unable to create a service order with serivce material ( Only installation visit charges ) for w/o warranty product .
    I am getting error : " Sales Org.Unit does not have these attributes "
    I had checked the related Org data of respective sales org , already the sales area combination is also maintained from R/3 with required attributes "
    Pls revert with possible solution .
    Regards,
    VCS

    PePe :
    Thanks for reversion !!
    Basically it is a product Service Material (Servicing Charges), where in I had checked in the transaction ,   Though the required sales area  is well maintained in the R/3 System and is being replicated to the CRM . 
    When I checked the product Service material , the required comination is missing and could find other sales area combinations .
    Pls guide , how to go to get this resolved .
    Regards,
    VCS

  • Free Goods determination -acess sequence sales org/ plant/material

    Hi
    I am trying to determine the free goods by choosing the key combination as Sales org/plant/material.
    The system is not determineing the free qty ,instead when i maintain the condition record with customer/Material key combination ,then the system is determineing the free qty.
    I also tried to put acess Sequence Sales org/plant/material above the Acess sequence customer/Material,but still the system not detrmineing the free qty in the order.
    can any one pl gide me how to solve this issue.
    regards
    shashi

    Hi
    Go to the access sequence where Sales org/Plant/Material are maintained as condition table.
    Now select the condition table and then click the node "Fields" on the left hand side of the screen.
    It may give a warning message that "Fields are not yet generated". Just ignore this and Enter once again.
    Do this until it takes you to a screen where you can see fields like KOMK-VKORG, KOMK-WERKS and KOMP-MATNR
    Now create the condition records and check in transaction by creating sales order. It shoudl work.
    Hope this helps.
    You can reward if it helps you

  • Free Goods Determination Based on Access Seq -Sales Org/DistCh/Cust/Materia

    Dear All ,
    Based on the requirement , I have configured 2 access seq for free goods determination.
    1. Customer/Material
    2. Sales org/DistCh/Customer / Material .
    The free goods determination is working fine when i use the first access Seq - . Customer/Material  and when i use the 2nd access seq - Sales org/DistCh/Customer / Material  free goods determination is not happening for both inclusive and exclusive .
    Can any one help me on this issue , as i am not able to identify  the issue .
    Thanks in advance for all the help.
    Regards
    Veera

    Hi
    Ceck this thread
    Forum post in ERP SD Sales: New Access Sequence for Free Goods Determination
    New Access Sequence for Free Goods Determination
    But for you free goods determination should be happening at
    Sales org/DistCh/Customer / Material  without any problem
    Make sure Sales org/DistCh/ maintained in VBN1 and what is falling in sales order are same
    Regards
    Raja

  • ABAB programm to copy material sales text from one sales org to another?

    Hi all,
    i'm searching for a ABAP programm to copy a material sales text from one sales org to another.
    Has anybody seen something like that before or has anybody an idea how to do this?
    Greetings & TIA
    strobbel

    @Narin
    I've tried to execute both code now over a new programm in the se38 and i get a error message from the first code (http://www.sap-img.com/abap/bapi-to-copy-materials-from-one-plant-to-another.htm).
    It's called:
    "BAPI_MARC1" cannot be converted to a character-type field.
    Could you help me to solve this?
    Sorry but i'm an absolutely newbie in things like ABAP and so on ...

  • Changing proposed delivery date in sales order for one specific sales org

    Hi All,
    I want to change proposed delivery date in sales order automatically for one specific sales org only without changing lead time in VOV8.
    For that can I use MV45AFZZ. But it is asking access key to make changes. Is there any other user exit for the same. And how does exactly change it.
    Thanks in advanced.
    Points will be awarded.
    Regards,

    EXIT_SAPFV45E_001 has nothing to do with this - it is meant to update the purchase order from a sales order. It might not even be triggered if the sales order has no link to a purchase order.
    USEREXIT_SAVE_DOCUMENT is not really good for this either, because the delivery date has to be changed before that. If memory serves, it also influences the schedule lines and probably the ATP check and such. I would strongly advise against it. One of the other routines in MV45AFZZ should do just fine, USEREXIT_MOVE_FIELD_TO_VBAK for example.

  • How to assign a Sales Org and Product group

    all the config have been maintained (creating the hierarchies/categories, assign the set types to categories etc.) under IMG->Cross-Application Components->SAP Product.
    Also assigned the set type for sales data/product group for category MAT_DIEN.
    But the fields from these section are greyed out when I try creating a product (not able to assign the sales org, or product group)
    Edited by: Agarwal Ameet on Aug 9, 2010 9:56 AM

    Dear Sun,
    One way is:
    Maintain the required setting in T. Code: VKOA.
    Another way is:
    Create an Internal Order (T. Code: KO01) with required Field-entries in
    Tab: Assignment --> Profit Center; and
    Tab: Period-end Closing --> Cost Center ( or G/L account).
    and attach it to your Sales Order.
    To know more about Internal Order Processing, refer:
    [Internal Order|http://help.sap.com/saphelp_erp2005vp/helpdata/en/a9/ab7f68414111d182b10000e829fbfe/frameset.htm]
    Or, consult FI-Personnel at your end.
    Best Regards,
    Amit
    Note: Also, sharing one document for knowledge-sake:
    [Acct assignmt logic sales order proc.|http://www.saptechies.com/acct-assignmt-logic-sales-order-proc-rem/]

  • Sales org 2 view in material master

    hi gurus,
    Iam not able to see all fields in sales org 2 view in material master and i would like to know how to configure to restrict end users not to change it . thank you in advance.
    regards,
    Gopio

    Hi naga gopathi
    go to Spro->logistics general ->materials management->  there you select the options of material feilds and select the material type and click on till you reach the sales orgn 2  view , .
    In MMR settigs you can see table  wise so i think it should me MARA table. for sales orgn 2 view
    There you check the feilds wat you want is in display or supress mode 
    Regards
    Srinath

  • No local currency found for plant and sales org.

    Hi Guru's,
    I am face to a problem that i don't understand.
    I load the standard master data 0PLANT and i have the basic issues : No local currency found for plant and sales org.
    I already saw this error so i check the basics to solve it.
    I respect the comp_code, sales_org and than plant sequence.
    i checkek the routines, no problem.
    for some plants it works. i extract 8 plants 2 works the rest not. the reason is that there is no sales org affected in my PSA table for those plants.
    But (and this is the problem) when i check the SAP source table T001W i can see that plants are corectly affecte to sales organization
    So do you have any idea of my problem ?
    do you know the transaction on ECC to maintain division and sales org affectation
    Thannks
    Cyril

    Hi,
    Pls have a look at this similar post:
    [No Local Currency found in Plant |How can I view the code for a routine in an update rule;
    Hope it helps...
    Regards,
    Ashish

Maybe you are looking for

  • Can't seem to get apache to start up... [SOLVED]

    I try to invoke Apache using 'httpd' as my command and I get the following: xelados@sporkbox:/etc/httpd/conf$ httpd (13)Permission denied: make_sock: could not bind to address [::]:80 (13)Permission denied: make_sock: could not bind to address 0.0.0.

  • ASSERTION_FAILED while activation of Transformation !

    Hello , While activation of transformation in Development system BI7.0 , following error appears : =============== Error analysis     The following checkpoint group was used: "No checkpoint group specified"     If in the ASSERT statement the addition

  • Beginning Of Java

    Just a little help on a few things. Where can i download netbeans to write my java language programs.

  • How to Identify Swept Transactions?

    Is there a way to identify the transactions that were swept from last month?

  • Safari , Autofill and Wells Fargo Online Banking

    In earlier versions of Safari, I had to type my login/pass to login to Wells Fargo Online banking, autofill wouldn't put it in: https://online.wellsfargo.com/ I figured there was some security issue and just dealt with it. Then in 2.x? it all of a su