BD64 Filtering Value (Sale org/ Distri Channel) need to get in EXIT_SAPLMV01_002

IHi ,
In BD64, Under MATMAS Data filtration is set on Sales Org and Distribution Channel. When I am sending material from BD10 , I need to get these values ( Sale Org / Distribu Channel ). B'cos on the basis of these values I need to fetch PLANT from MVKE table by passing SOrg and Dchl .
I am reading Segment value in exit EXIT_SAPLMV01_002, but , these values are present at MVKE Segment but I need those values at MARC Segment and MVKE Segment trigger at last where MARC segment trigger initially , So I am not able capture values in Segment also.
On the basis on MARC-MATERIAL & MVKE-PLANT , I need to fetch TRLT (Lead Time) from MARC.
How to retrieve Sale Org/ Dch either from Filtration Set at BD64 or from MVKE Segment that is triggering later then MARC Segemnt??
Regards
Ankesh

Hello Ankesh,
Modify MARC segment after MVKE is filled.
Please find the below sample code :-
Loop at IDOC_DATA  into WA_ IDOC_DATA  .
case wa_idoc_data-SEGNAM.
when 'E1MVKEM'
READ TABLE IDOC_DATA into WA_ido WITH KEY segname = E1MARCM     
if sy-subrc = 0.
*write your logic here and modify idoc_data
endif.                               
endcase.
Endloop.
Thanks

Similar Messages

  • BAPI_CONTRACT_CREATEFROMDATA not defined for sales org distr channel langu

    I am using BAPI_CONTRACT_CREATEFROMDATA to create a contract. If I use a material other than a product, I get no error. If I used a product type material< I get an error statign that the material is not defined in sales organisation dirtibution channel langu EN (I have checked the material and it does contain text.
    Any ideas what the problem is?
    Thanks,
    Leanne

    material is not extended to the sales org, etc., (see table MVKE) or you're supplying wrong combination of VKORG, VTWEG, SPART values.

  • Action Condition by Sales Org / Dist Channel for Opportunity Management

    Hi,
    i need to set action condition by Sales Org / Dist Channel for Opportunity.
    i tried using object BUS2000111 but can't find any parameter referring to Sales Org/Dist Channel.
    any lead really appreciated.
    JD

    Hello Jushan Djuwardi,
    Can you please tell me how you solved this question.
    Thanks.

  • How to know a users company, sales org, dist. channel and division...

    Hello Experts,
    Is there a way to know which company, sales org, distribution channel and most importantly division a
    user is currently affiliated? Really need help on this one guys since I am gonna use it for authorizations.
    Thank you guys and take care!

    Hi,
    If your informations are not in SU03 or XD03, so  I think you can't have these informations.
    (Maybe with column "Terminal name" in SM04 ?? If this information has been normed in your company)
    Regards,
    Stéphane.

  • Relation between Sales org + distribution Channel + Division.

    Hello all,
    I have a requirement where I need to make an entry for  sales data for a BP . On the Selection  we have sales Org , Distribution channel and division. can any body tell me how check if the combination of entries made for the S.org , Channel and division are correct .
    I tried using the FM CRM_BUPA_SALES_AREA_GET_ALL. but this doesn't show all the entries .
    Thanks in advance
    srinivas

    Any Suggestions ?
    Thanks ,
    Shounak M.

  • Remove Sales Org & Distribution Channel assigned in Material Master

    Hi,
    Is it possible to remove Sales Org & Distribution Channel assigned in Material Master. This is a newly created material I looked at MM06 to see if this assignment can be removed without setting the material for deletion. Any suggestions welcome.
    Thanks.

    the only way to get rit of existing  data is to set a deletion indicator and subsequently run archiving.
    In your case go to MM06, enter material number, sales org and distribution channel and set then the deletion indicator at this level only.
    Then go to SARA object MM_MATNR and run archiving.
    Archiving is usually a process, not just a sequence of transactions. Archiving requires customizing, and certainly the most recent OSS notes for the archiving object (this can be extremly many if your hotpackage implementation was long ago).
    this is especially needed to archive only certain organisation levels, as this functionality came with OSS notes

  • Which table contain the sales org/distribution channel details for an PO

    Hi Experts,
    Do you know from which table could i get the sales org/distribution channel details for an Purchase order.
    The Purchase order is an UB document type. STO
    Then there will be delivery order created for this STO.
    I heard there are 2 kinds of Sales org/distribution channel in one Purchase order? One is Vendor, another is local...?Is this correct understanding?
    Please let me know which table field could i find those info from an Purchase order document?
    Or the questions could be:
    Assumed we have replenishment delivery#, then how to get corresponding Purchase order#(UB, STO), and further how to get the sales org info?
    Please kindly advise from table fields points of view...
    How to get the PFrom an replenishment delivery#
    Thanks.

    Dear Hoo Laa,
    You may find the Sales Organisation/Distribution Channel details in PO itself (Shipping Tab). Table where you can get Sales Organisation/Disribution Channel is EKPV.
    Regards
    Samier Danish

  • Sales Org/Distribution Channel to Plant Assignment

    Hello All,
    I am assigning a sales org/distribution channel to a plant, but an error message says that "Organizational data for inter-company billing missing in plant CN30". Can anybody tell me what this means and how to correct it?
    Thanks and regards,
    Olyn

    Hi Olyn,
    I think there may be something missing in your customising - please    
    see the relevant parts of note 109254 attached - in particular points  
    7 + 8 relating to transaction OMGN.    
    Kind regards,
    Zsuzsanna

  • Combine sales org. dist channel & division

    Dear Gurus,
    What is the use of combine sales org, combine dist channel, combine division?
    We assign sales doc type to sales area not to individually sales org, dist channel & division?
    I cud nt understand sales org with ref 2 sales org, dist chnl with ref 2 dist chnl & with division also?
    Wt is the logic behind that? Kindly give logical answer?
    Regards
    Rakesh

    Dear Rakesh,
    As GSL rightly mentioned that the use of Combine sales org. dist channel & division in addition to that,
    I can say in one sentence what is the logic behind Combine sales org. dist channel & division.
    "To share the sales document types to all sales areas"
    It is like common divisions and distribution channel through this we can share the master data for all slaes areas which is maintained in one sales area.
    But in Combine sales org. dist channel & division we share document types to all sales areas which are assigned to single sales area.
    I hope this will help you,
    Regards,
    Murali.

  • BAPI to get customers filtered by sales org and distribution channel

    Hi there,
    I'm writing a little portal web-app on an MS platform to allow externals to place orders directly.  I have a problem that I need to get a list of customers (for ship-to) that is filtered by the same sales org and dist chan as my sold-to company and BAPI_CUSTOMER_GETLIST doesn't return this info for filtering.  What options do I have?
    Many thanks,
    Ashley

    Hello,
    Create custom RFC function module.
    Use table KNVV to get your customer list based on sales org. & distribution channel.
    Regards,
    Sameer

  • Urgent,   Restricting Sales org & Distribution Channel

    I'm having two users and one is from US and other MEXICO
    If user from US LOG'S into SAP ,He should only his Sales org(US01) & Distribution Channel(001) & Mexico User log ,then he should be able to see only his Sales org(ME01).
    My Question is there a way where we can restrict US / MEX Through Security , if not Can we restrict through abap if so Please send me some details , Which table /code .
    any inputs will be appreciated ,

    Hi
      One way is as below.
      DATA: BEGIN OF lt_tvko OCCURS 0,
              vkorg TYPE vkorg,
              bukrs TYPE bukrs,
            END OF lt_tvko.
      SELECT vkorg bukrs FROM tvko INTO TABLE lt_tvko
        WHERE vkorg IN lr_vkorg.
      IF sy-subrc NE 0.
        MESSAGE e085(wv).
      ENDIF.
    * Check all retrieved co.codes
      SORT lt_tvko BY bukrs.
      DELETE ADJACENT DUPLICATES FROM lt_tvko COMPARING bukrs.
      LOOP AT lt_tvko.
    *   Error Message: No authorization for sales organization &1
        PERFORM f_bukrs_auth_chk_p USING lt_tvko-bukrs 'ICC_FI_CN' 'E' '010'
                                         lt_tvko-vkorg '' '' ''.
      ENDLOOP.
    FORM f_bukrs_auth_chk_p USING value(lc_bukrs) TYPE bukrs
                                  value(lc_msgid) LIKE sy-msgid
                                  value(lc_msgty) LIKE sy-msgty
                                  value(ln_msgno) LIKE sy-msgno
                                  value(lc_msgv1)
                                  value(lc_msgv2)
                                  value(lc_msgv3)
                                  value(lc_msgv4).
      AUTHORITY-CHECK OBJECT 'F_BKPF_BUK'
        ID 'BUKRS' FIELD lc_bukrs
        ID 'ACTVT' FIELD '03'.
      IF sy-subrc NE 0.
        MESSAGE ID lc_msgid TYPE lc_msgty NUMBER ln_msgno
          WITH lc_msgv1 lc_msgv2 lc_msgv3 lc_msgv4.
      ENDIF.
    ENDFORM.                    "f_bukrs_auth_chk_p
    Select the sales organization mapping to Company code and then restrict.
    Hope this can help you.
    Kind Regards
    Eswar

  • Relation between Sales org , Dist Channel and Division

    Hello all ,
        I need to know where the relation between Sales Org. , dist channel and Div is stored in CRM . I need to create search help which will get Dist channel and Division for a particular sales orgnization .
        Helpful answers will be rewarded .
    Thanks ,
    Shounak M.

    Any Suggestions ?
    Thanks ,
    Shounak M.

  • Sort out the invoices based on Sales Org, Dist Channel, Div while printing

    Hi all,
    My User required to run the program - RV60SBAT
    for creating batch job : FR_INVOICING.
    When we check the steps in the job FR_INVOICING we could find 10 steps with different variants.
    On running this job, system will provide the printing of Invoices for different Sales Organizations, Distribution Channel, Division and Invoice Numbers. However this out put is not generating in a sorted manner currently.
    User requirement is to sort out the invoices based on Sales Organizations, Distribution Channel, Division and Invoice Numbers.
    Kindly look into this and help me  how to address/approach this problem.
    Thanking you in advance
    Best Regards
    TRS GUPTA

    Assign fields KOMKBV3-VKORG KOMKBV3-VTWEG KOMKBV3-SPART to output type config sort order fields sort field1, sort field2, sort field3 respectively.
    Use user exit include RSNASTZZ and add the following code
    under when '50'.
      insert NAST-SORT1 NAST-SORT2 NAST-SORT3 NAST-OBJKY  INTO HEADER.
    Change RSNAST00 job step variant to incluce 50 in the sort field.
    Regards
    Sridhar
    Message was edited by: Sridhar K

  • Finding sales Org, Distribution Channel

    Hi Forum,
      If i have plant and material how could i find its corresponding sales organization and Distribution channel.give field and table name.
    Thanks
    Lovleen
    Edited by: lovleen sol on Jan 8, 2008 11:14 AM

    Hi,
    Check these table:
    MARA: General Material Data
    MARC: Plant Data for Material
    MARD: Storage Location Data for Material
    MARM: Units of Measure for Material
    MVKE: Sales Data for Material
    MBEW: Material Valuation
    Base Unit u will get from table MARA and for others units check MARM.
    Rewards points if helpful,
    Regards,
    Srinivas Ch

  • Sales Org assign to Plant

    Hello Everyone,
    I would need your help to confirm the following is true or clarify some doubts:
    1. I understand that Sales Org (SOrg) is assigned to Plant   , thus :  Sorg := Plant
    2. Does this also Implies : SOrg + Distr Channel := Plant? Not necessary right? For this case, its not true / an invalid assignment right?
    3. Plant is assigned to Sales Org + Distr Channel.  Is it implicit that the Reverse is true? Is it implicit that Always the reverse is true, in general, for Any other organizational unit assignment relationships?   
    I believe that Sales Org := Plant and Plant  := Sales org + Distr Channel  and the reverse of each of both relationships are not true. Please confirm.
    4. Sales Org is Assigned to Plant but Plant is not Assigned to Sales Org right? Plant is also higher level in the organizational structure than Sales Org right?
    Thanks.
    Sincerely
    Bass
    SD Newbie
    Edited by: Bass Aton on Jan 2, 2011 5:20 PM

    Hi,
    I guess this will help you
    How to Configure a New Plant in SAP?
    Plant 0001 is the SAP defaults provide for your reference.
    OX14 - Define Valuation Area (Tick one only- Once your system go live, no more changes) Most company take the SAP recommended choice - Value Material Stock at Plant level Value Material Stock at Plant or Company Level If you valuate material stocks at plant level, the plant is the valuation area. If you valuate material stocks at company code level, the company code is the valuation area. The decision you make applies to the whole client.
    OX10 - Create / Change / View Plants
    OVXB - Create / Change / View Division
    OX18 - Assign Plant to company code e.g. 0001 - 0001 - All Plants Px1 - Plant Px1 Px2 u2013 Plant Px2
    OX19 - Assignment of company code to the Controlling Area
    OB38 - Assign company code to Credit Control Area
    OMJ7 - Assign business area to Plant/Valuation area and division e.g. Plant Px1 - Business Area Bx1 Bx2 Assign Valuation area to the Business Area .e.g. Valuation area Vx1 - Business Area Bx1 Business Area Bx2
    OMS0 - Assign Factory Calendar to the Plant and Business Area The plant plays an important role in the following areas: If you want to create by copying from existing plant: 1. Copy existing plant A to new plant B. All of plant Au2019s data in throughout the IMG will be created/copied for plant B. In some cases with plant A data that is not desired. In step 3 you must go through and correct invalid entries 2. Correct address information 3. Correct data copied to plant B as plant A (a) In Sales and Distribution -> Shipping -> Picking -> Determine Picking Location -> Assign Picking Locations (OVL3), delete entry where Shipping Point = plant A and Plant = plant B and press save. (b) In Sales and Distribution -> Shipping -> Basic Shipping Functions -> Shipping Point Determination -> Assign shipping points u2013 wherever plant B is found the shipping point is plant A. This must be changed to plant B. (c) In Enterprise Structure -> Maintain Structure -> Assignment -> Sales and Distribution -> Assign shipping point to plant u2013 delete plant B shipping point from the plant A assignment. (d) In Enterprise Structure -> Maintain Structure -> Definition -> Sales and Distribution -> Define, copy, delete, check shipping point u2013 copy shipping point plant A to shipping point plant B. Correct the description in the define section of this node. (e) In Sales and Distribution -> Shipping -> Picking -> Determine Picking Location -> Assign Picking Locations (OVL3), copy plant A entry to plant B entry, changing all data to plant B. (f) Check with Reorder buying group to determine MRP controllers for new plant. Remove plant A MRP controllers from plant B, and add controllers received from reorder buying group. IMG is Materials Management -> Consumption Based Planning -> Master Data -> Define MRP controllers (g) Define special procurement. IMG is Materials Management -> Consumption Based Planning -> Master Data -> Define special procurement type. (h) OMGN u2013 Assign customer in u201CSet up stock transport order u2013 [Plant]u201D. OMGN u2013 in u201CSet up stock transport order u2013 [Purchasing Document type]u201D; an entry was created for source plant B and plant A, this entry should have a UB order type and the check box should be off. Each plant needs a plant B UB entry created. (j) OMJ3 u2013 Delete incorrect entry in print parameters. Remove entry where plant = plant B & storage location = plant A. Create entry for plant B storage location B (k) Verify entry for new plant exists in OVLT picking output (l) Verify entry for new plant is correct in VP01 4. Manual configuration (a) Create plant customer number and assign to plant in OMGN. (b) OMJ3 u2013 set correct printer for plant B (c) OPK8 u2013 Set printer for plant for list LG01. This is for production orders. (d) Output determination OVLT (set printer), In addition to above, other changes based on customization in your installation needs to be done as well. Plants Definition : /NSPRO-IMG-Enterprise Structure-Definition-Logistic General-Define,copy,delete,check plant-Define Plant (In this, we are defining plants(s) under company which is defined earlier) /NSPRO-IMG-Enterprise Structure-Definition-Logistic General-Define,copy,delete,check plant- copy,delete,check plant-F6 to copy org. object from plant 0001 to defined plant(s). Storage Location : /NSPRO-IMG-Enterprise Structure-Definition-Materials Management-Maintain Storage Location-New Entries (Define required storage location(s) under different plant(s) ) /NSPRO-IMG-Enterprise Structure-Definition-Materials Management-Maintain Storage Location-Storage Location Description---- New Entries ( enter here addresses of each plants)
    Thanks
    Anil Hooda

Maybe you are looking for

  • Connection from DP to SAP PI 7.11 via SOAP/https failed

    Hello Guys, we have a problem with connection from DP to SAP PI via SOAP/https. DP send a request and get a timeout. timeout is 2 or 3 minutes. DP and SAP PI authentificated with certificates. Our Problems: DP get now failure code in commnication cha

  • Problem with File RFC File scenario without using BPM

    Hi all,   I am trying a File RFC File scenario without using BPM with the help of the following thread: File - RFC - File without a BPM - Possible from SP 19.   The XI system is PI 7.0 sp 12. When I am trying to acheive the above scenario, I am getti

  • ITunes freezes when I try to sync my iPad

    I've got a black MacBook running 10.7.3 and the latest iTunes (I can't tell you the version right now because it is currently "(Not Responding)") and a first generation iPad. I don't sync it often, the last time being December, 2011.  I tried syncnin

  • Reg ALV GRID

    Hi, i am getting data for MATNR,WERKS and few more fields in the ALV output. in that for MATNR i put the edit option,so when i edit this matnr field and click on SAVE button the values should be saved in the output. i wrote the function module popup_

  • How do I "freeze" the top row

    How do I freeze the top row so that I can see it even if I scroll down many cells?