Need info on badi or exit before creation of Material document number?

hi experts,
we have two systems one is general R/3(4.6 C) and another system is GTS (NW 2004)system.
while creation of GR a check from R/3 is made to GTS through GTS plug in installed in R/3
and after which the document number is created...
now i need a BADI between the check is made in GTS and material document no. creation
where i can throw a message by checking in R/3 LFA1 table whether the vendor is SPL check or not.
for this i am using MB_DOCUMENT_BADI and the method is MB_DOCUMENT_BEFORE_UPDATE
where i am querying the zfields from LFA1(R?3) for SPL check happened in GTS (this is updated in some other interface)
if in this badi if any error message is populated it is directly going for dump..
please suggest me what can i do..
Thanks in advance
S.Janagar

problem solved by myselves.
by using popup to inform function module i am able to throw error message
Edited by: Janagar Sundaramoorthy Nadar on Nov 19, 2009 7:01 PM

Similar Messages

  • Creation of material document number.

    Hi All,
    In the MIGO transaction, for a Goods receipt order, the transaction is calling MB_CREATE_GOODS_MOVEMENT and MB_POST_GOODS_MOVEMENT to create a material document and returns material document number.
    I have created a new program that is using only the above two FMs and want to create the material document. But this thing is not working.
    I am passing all the parameters, which the FM takes when called from MIGO transaction. It is giving me a material document number which is not tracable for the current posting data in any of the tables.
    Also please tell me in which table can I get the details for the material document number other than AUFM and MSEG.
    help will be rewarded.
    regards.

    problem solved by myselves.
    by using popup to inform function module i am able to throw error message
    Edited by: Janagar Sundaramoorthy Nadar on Nov 19, 2009 7:01 PM

  • BADI, User Exit before FI document is posted during GR posting in MIGO

    Hi Gurus,
    In transaction MIGO, whenever a goods receipt is posted, a corresponding FI document is then created. I am in need of a BADI, User Exit, or other forms of enhancements that is triggered before this FI document gets posted because I have to edit data in the header (BKPF) and detail (BSEG) part, specifically the fields BKPF-XREF1_HD (Reference key 1) and (BSEG-ZUONR) (Assignment).
    The field XREF1_HD is to be populated with the vendor number from MIGO (GOHEAD-LIFNR)
    The field ZUONR is to be populated with the PO Number from MIGO (GOITEM-EBELN)
    Regards to all,
    Joseph

    Hi,
    I am on 4.6C.
    We are using EXIT_SAPLF048_001 of enhancement F180A001 for the same.
    Please note that control comes here for no of SAP transactions, hence you need to take care of it by executing your logic only for a particular SAP transaction.
    I hope this helps,
    Regards
    Raju Chitale

  • Need material document number

    Dear all,
        I have an issue.  Inorder resolve it i need run a run aset up in OL1BW using the material document number.
    I have the process order, period, plant and material, but i need to find the corresponding material document number. Can anyone help me how to proceed further?
    The datasource is 2lis_03_BF.
    Pls also diferntiate between material and materail document number.
    Thanks..
    Regards
    Santhosh Kumar N

    The source for 2LIS_03_BF, as Arun pointed out, are R3/ECC tables MSEG and MKPF.
    Material - Refers to the material number, or part number, that is being managed. Typically, the material on an R3/ECC system is an 18-byte generated number to identify it to the system and has an industry accepted part number (Manufacturer Part Number) as a conversion exit so that you can enter either on R3/ECC and get the correct material number.
    Material Document - Refers to the internal document used for tracking the movement of a material. Examples of material movements would be goods receipts and goods issues. MKPF is the Material Document header table and MSEG has the Material Document line items.
    To find the Material Documents, you're going to have to query the MKPF table in your R3/ECC environment to get the document ranges needed for the setup jobs that you plan on executing.

  • Creation of material Documents for RMPM adjustments using BAPI

    Hi
    can any one help me Creation of material Documents for RMPM adjustments using BAPI...
    i should be grateful to you...
    advance thank you
    with regards
    venkat

    You can check MB_CREATE_GOODS_MOVEMENT which has mkpf as inporting parameter.

  • FM/BAPI for creation of Material Document (similar to Transaction MB1C)

    Hi Gurus,
    Good day.
    Are you guys aware of FMs / BAPIs that can produce Material Documents (similar to the Function of Transaction MB1C)?
    Thank you very much!
    Best regards.
    Brando

    hi
    in addition to BAPI_GOODSMVT_CREATE ,you can try user exits as well like
    MBCF0005 Material document item for goods receipt/issue slip
    MBCF0002 Customer function exit: Segment text in material document item
    MB_CF001 Customer Function Exit in the Case of Updating a Mat. Doc
    hope this helps
    regards
    Aakash Banga

  • Need to find out the account group given the accounting document number

    I am new to SAP. Please help.
    Need to find out the account group given the accounting document number?

    If you are asking about account assignment group then that can be seen in billing document -> Header -> Accounting Data.

  • BADI / USER-EXIT to change Vendor Material Number in ME21n

    Dear Sir,
    We are looking for a BADI/USER-EXIT  in Tcode ME21n , which can change the Value of  "Vendor Material Number" (Vendor Material Number is available under Item Detail in "Material" Tab . The value which need to be populated in the Field "Vendor Matreial Number" is  equal to first 4 character of the Item Code .
    I request the SAP Experts to kindly guide me with a sample Code please .
    I will be highly grateful for the kind help pl .
    Regards
    B Mittal

    Hello B.V.,
    User-Exit:
    First open the relevant Module Pools for ME21n via SE38. Then search for all CUSTOMER_FUNCTION 'xxx' where xxx is a 3 digit number. This number is linked to a User-Exit EXIT_<Module Pool>_xxx. Then investigate this function for it IMPORT parameters. In your case there has to be an interface for "Vendor Material Number".
    For to implement the required changes use the by SAP delivered include ZX<something> inside this function.
    BAdI:
    1. Search in IMG
    2. Find Enhancement Point in the relevant Module Pool.
    Hope this helps,
    Heinz

  • Creation of Material Documents With Mvt Type

    On Performing Post Goods Issue (PGI) in one Plant in case of Plant to Plant Dispatches, there should be Inbound delivery created for already created Purchase Order (PO). In addition after creation of inbound delivery, there should be material document created with 103 movement. This Material document is triggered when the inbound delivery is saved. Once Warehouse processes are finished, then Post Goods Receipt (PGR) happens, so 101 Movement Type happens for Purchase Order. PGR document should trigger one more material document with 104 movements; this document is reversal for material document with 103 movement type.
    can any one suggest to enhance SAP for this?
    Moderator message : Requirements dumping is not allowed, show the work you have already done. Thread locked.
    Edited by: Vinod Kumar on Oct 21, 2011 5:18 PM

    Hi Nitin,
    Before creating the Service type of product, you have to define the Base category for Service type product. Generally the category for service will be created under the R3 hierarchy R3PRODSTYPE. You can create this category using the TCode:
    COMM_HIERARCHY. Here you have to select the product type as Service and have to assign the set types to the category.
    You can create a service product using the transaction : COMMPR01 -> Click on Service ICON -> Select the Category for Service Type. Then fill in the details for Service Product description, Service ID(Based on number range settings for products), Language.
    Also fill other details like Base Unit of measure, Pricing condition for different sales areas for the service product.
    Since you are using CRM7.0, you can do all these activities using a POWER USER role.
    For more information about Set types and hierarchies please refer the following help link:
    http://help.sap.com/saphelp_crm70/helpdata/EN/46/57672501a208e7e10000000a114a6b/frameset.htm
    Hope this helps!
    Regards,
    Chethan

  • BAPI for creation of material documents/movements

    Hi Everebody:
    I need some help regarding to bapis for the creation of mateial documents and/or movements. I have been trying to implement bapi BAPI_GOODSMVT_CREATE, but this bapi does not have (import) the posting time in document, which is very important for my porpuse.
    So, I would appretiate a lot any information anybody could give about any bapi I could use to create material documents or material movements but incluidng the posting time in document (field MKPF-OIB_BLTIME).
    Regards

    You can check MB_CREATE_GOODS_MOVEMENT which has mkpf as inporting parameter.

  • VL06I - GR - Not tied to LT06 - TO creation for Material Document

    Hi,
    When I do GR from VL06I report for Inbound deliveries, it does not take me to LT06 - TO creation with respect to Material Document after GR posted.
    Basically it takes to VL32N screen during GR posting.
    Manually when I do GR using Tcode VL32N - takes me to LT06 for TO creation, after GR posted.
    Any config needs to be done?
    Please advice.
    Thanks in advance.
    Rajesh

    Hi,
    Thanks for the reply.
    I am using - VL06I report, secondly Delivery Status Overall Putaway Status - Not for Putaway, OverallWM Status - No WM trns Ord reqd for the Inbound Delivery created (PGR not done).
    Thanks,
    Rajesh

  • Need info regarding BADI CRM_COND_COM_BADI.

    Hello experts,
    My requirement is to calculate the value of a specific condition type based on a custom attribute that is maintained in Item Master.
    I added a new field in Condition Field catalog for this and implemented BADI CRM_COND_COM_BADI to pass the new attribute value to Pricing. This works fine till creation of Billing Due List.
    The issue is that we are redeterming the automatic condition entries during Billing document creation. It seems that the BADI is not getting triggered beacuse of which the Condition entry is not present in Bill Doc anymore.
    Any inputs in this regard will be appreciated.
    Regards,
    Amit

    Hi davide,
    The BADI CRM_COND_COM_BADI is used for filling the pricing communication structure.
    If you have added any field at header level of the field catelog that will available in the changing parameter of the method HEADER_COMMUNICATION_STRUCTURE.
    If you have added any field at item level of the field catelog that will available in the changing parameter of the method ITEM_COMMUNICATION_STRUCTURE.
    Additional fields added at catelog can be filled with the values using this BADI.
    Thanks & Regards,
    Raghuram. K.R.

  • Need to fetch sales order no. before creation

    Hi Experts,
    My requirement is to add text in "Text" tab at item level in Sales Order creation. This is working fine for VA02 as I am using folowing code:
    FM to store date in the 'Text' tab of the Sales Order
        CALL FUNCTION 'CREATE_TEXT'
             EXPORTING
                  fid         = 'Z0CF'
                  flanguage   = gc_spras     "Language
                  fname       = gv_so_it        "Sales Order No+Item number
                  fobject     = gc_obj
                  save_direct = 'X'
                  fformat     = '*'
             TABLES
                  flines      = it_temp           "Data to populate text tab with
             EXCEPTIONS
                  no_init     = 1
                  no_save     = 2
                  OTHERS      = 3.
        CLEAR it_date.
      ENDLOOP.   "it_date
    It is working fine for VA02 as SO no. is existing and fname is getting sales order no and item no. to create text.
    My problem is that I want to do same thing for transaction VA01. But the problem is fname doesn't get appropriate data as SO is still not created.
    Is there any way I can achieve this?
    Any structure or table that I can use?
    Your help in this regard will be highly appreciated.
    Best Regards,
    Vishal Sharda.

    Hi ,
           Create a Z function module in update task add the code
    CALL FUNCTION 'CREATE_TEXT'
    EXPORTING
    fid = 'Z0CF'
    flanguage = gc_spras "Language
    fname = gv_so_it "Sales Order No+Item number
    fobject = gc_obj
    save_direct = 'X'
    fformat = '*'
    TABLES
    flines = it_temp "Data to populate text tab with
    EXCEPTIONS
    no_init = 1
    no_save = 2
    OTHERS = 3.
    CLEAR it_date.
    ENDLOOP. "it_date
    and call that Z function module in update task in userexit_save_document ,there vbak-vbeln or xvbak-vbeln will have the SO number .
    Please reward if useful.

  • User exit/badi to add items to a material document

    Hi,
    Is there any user exit/badi which can be used to add an item while creating a  goods receipt document in MIGO. The requirement is that when user does a GR against a PO, the exit should check if there is a returnable packaging material for the material in the PO, and then include this packaging material in the GR. We found  user exits/badis which allow changes to an existing item, but didnt find any which can be used to append an item.
    Let us know if there is any way to do this.

    Do you have check the BADI : MB_MIGO_BADI ? 
    I have use it to modify the MIGO screen (add a new tab) create an input field and use this field to modify the material master data.
    Maybe you could use for your work.
    Fred

  • Updating quantity in existing GRPO (before creation of excise document)

    We have a case, especially when we get solvents (liquid hydrocarbons which are prone to evaporation losses), wherein a quantity comes with a delivery challan, but the correct quantity (after adding acceptable loss of solvent to actual quantity unloaded in the factory) will be given with the VAT and excise invoices, usually given 1-2 days after supplying the material. In this mean time, I should be able to enter the actual quantity unloaded and proceed with issues to production, and later on add the acceptable loss quantity to the existing GRPO, and go for creating excise invoices.
    I don't think this is possible in the current SAP B1. Please add this functionality in a future release. This will be a problem for every chemical company that buys solvents from traders (which almost everyone does).

    Closing for lack of better answers or solutions.

Maybe you are looking for