BADI for Goods Issue against 541 movement type

We want to check the stock of a subcontracting vendor for some materials, suppose a subcontracting vendor is having a material of 10 qtys. the system should throw an error message saying that the subcontracting vendor is already having the stock of 10 qtys., & no more goods issue not possible to this vendor,  this should happen whenever we issue the goods to subcontractor through 541 movement type if that subcontracting vendor is having a stock of say 10 qtys. Please give me the Solution this.

HI,
explore with ABAPer
MB_DOCUMENT_BADI                      BAdIs when Creating a Material Document
MB_DOCUMENT_UPDATE                BADI when updating material document: MSEG and MKPF
MB_MIGO_BADI                              BAdI in MIGO for External Detail Subscreens
MB_MIGO_ITEM_BADI                     BAdI in MIGO for Changing Item Data

Similar Messages

  • Different "cost of goods sold" for goods issue and return (mov.typ 601/602)

    Hello everyone,
    I have posted outgoing delivery to the client. During the goods issue posting (HAWA u2013 with Moving Price Control), system took a moving price for this material u2013 letu2019s say 100 EUR. After a month moving price for this particular material has been changed, letu2019s say actual average price is now 120 EUR.
    Now when I made return delivery, system took on material document actual moving price 120 EUR. Is there a possibility to change this rule, so each time I will make return delivery system will take price from a document Iu2019m referring to?
    Please give me some advice.
    MK
    Edited by: Maciej Kromolicki on Jun 4, 2008 9:59 PM

    Hi kromolicki
    If you have maintained moving avg price for the material in accounting1 tab then , system will pick the price on the avg basis only
    Say for example
    you have sales order for  10qty
    Moving avg price is Rs100/-
    system will calculate , the moving avg price on the basis of the quantity. That is why the COGS will vary
    Regards
    Srinath

  • Account Detrmination for Goods Issue against Order

    Dear All,
    We have a requirement where goods issued against reservation created through plant maintenance order should hit repairs & maintenance account instead of default account such as consumption stores and spares.
    Can any changes be made in configuration so that the default account can be changed either while saving plant maintenance order or can the default be overwritten when material is issued through MB1A against reservation.
    Useful answers will be rewarded with points
    Regards
    Milind Nair

    Dear
    Your knowldge iam adding the points
    In materail master check the Valuation class 4 digits (ex: 2010)
    is assigned in material master . The same material will be used in many places , this valaution class depends Production created by Fi.
    This same will have assigned in G/L at OBYC t code. Here we assign as automatic posting. The same G/l account has given as automatic posting in G/L t code FS00.
    In obyc has many process example for goods issue it will come as BSX. costing difference PRD.
    your materails type is ERSA these types may bes used many plcaes other than Pm . If clinet interests you can assign valuation class with seperate G/l account for PM
    All the G/L , costing docuemnts will appear while doing migo (mb1a) 261 movements as per your obyc seetings
    Tell requirements with FI/MM

  • Unable to do a goods issue with a movement type with no consumption posting

    Dear Colleagues,
    I have a customer who sellls books, some of these books are printed on demand and hence no inventory is maintained and other books manage inventory as stocks are maintained.
    SD Orders and deliveries are managed for these products.
    However , the customer would like a process in the SAP delivery document to represent the goods leaving the printing plants, ie the goods issue.
    As for materials that do not manage inventory are not visible from the VL06G ( Outbound deliveries for goods issue) transaction. I configured a 'dummy' movement type and assigned it to a schedule line.
    The movement type has the setting 'consumption posting' removed.
    After doing this, the deliveries show up in VL06G, but when attempting to do the post goods issue, I get the following error message  "Deficit of SL Unrestricted-use "
    I have checked all the config that I know and there should not be any availability checks, but shome how it is being checkad at goods issue. Help!!! What am I missing?
    Many thanks
    Henry

    Hello
    From my point of view you need to use a Non Stock Material  (Material type: NOST)  to manage the books .
    then you sell books as you are selling service
    Best regards
    Meher

  • Authorization restriction for Goods issue against an Order

    Hello All,
    We have a situation wherein the user is able to issue goods using tcode MIGO by choosing Goods issue --> Others and mentioning an order number that belongs to another plant in the account assignment tab and issues a material which belongs another plant.
    For eg we have material A that has been created for plant 1. The user issues the material (movement type 261)and the account is assigned to an order which has been created for plant 2.
    I could not find any authorization object that restricts this.
    I checked the objects M_MSEG_BWA and M_MSEG_WWA and he has authorizations only for plant 1 and all movement types.
    Any pointers to restrict this access will be appreciated.
    Thanks & Regards,
    Subramaniam Iyer

    Hi,
    MIGO transaction by default restricted with Plant.  If you say that the user A is having access to only Plant 1 & 3, but not for 2, please check the below authorization objects does not have any manual objects inserted into the Role and restricted with the value only in organization field.
    M_MSEG_LGO
    M_MSEG_WMB
    M_MSEG_WWA
    M_MSEG_WWE
    This issue may occur because if the objects are maintained manually in the role.  If so, when you check in the organization field, it may not be showing the value which are manually added into the manual object.
    Also, please check the other roles are assigned to the user.  If any of the other roles assigned to the user having any of the above objects with * value, this may provide the user to do the Goods movement for any plant.
    To check the issue, please go to SUIM and check the user under "Roles by Complex Selection Criteria" and make sure that you are checking the objects for the particular user.  This should be able to identify whether the user is getting access from any other roles assigned to the user.
    Regards
    Anandm

  • Goods Issue using BAPI_GOODSMVT_CREATE movement type 541

    Hi
        According to my requirement I need to do Post goods issue using BAPI_GOODSMVT_CREATE. But I am unable to do PGI . how to consume BOM details if batches are changed. please let me know what values I need to pass to BAPI . give with an example.
    Its an urgent requirement.

    are you passing batch number to the BAPI?
    if not try pass the batch number the rest of the things bapi will take care of.
    bi

  • Validation for Cost center for Goods issue against the cost centers

    Dear Friends
    In my client place we have 6 plants are defined and profit centers are defined for each plant. Hence here each plant is one profit center. Cost centers are defined plant wise.
    The requirement is when the goods issued to cost center system should check the cost center is defined against the plant. ( i.e., Cost center def against the Profit Center, and Profit center equal to Plant).
    Is there any provision to assign the plant to profit center or vice versa?
    Please guide me how to resolve the issue.
    Thanks in advance.

    Hi
    Please check EC01. May be it can help you. But in my view it is not possible.

  • How to set error message for 541 Movement type

    Dear gurus,
                I want to know that is it possible to set error message through any configuration? My requirement is that when we create issue document using m.t 541 it will not allow me to process that document without releasing PO document.so for that i want to set error message.
    <removed by moderator>
    Message was edited by: Jürgen L

    Hi,
       The subcontracting goods issue can be done even without PO reference. If your organization is strictly following the goods issue against PO only and you want to restrict the goods issue if the PO is not released, then you may check the below option. Please note that the below option is available in standard only from EHP 4 or above.
    1. Refer the KBA: 1915825 - Transfer Posting reference to a Purchase Order in MIGO and activate the PO reference option in MIGO - Transfer posting.
    2. Restrict the use of 541 movement in MB1B - Go to OMJJ and enter movement type as 541. Now go to "allowed transactions" folder and remove MB1B. Now the user cant use 541 in MB1B.
    3. Maintain the field - Purchase order as mandatory field for the movement type 541 in OMJJ.
    4. Train the users to use MIGO - Transfer Posting - Purchase order option for goods issue with 541 movement.
    5. If the PO is not released, system wont allow to use the PO in MIGO - Transfer Postings.
    6. If the user is selecting Transfer Posting - Other, system wont check the PO and hence it will allow to post the goods issue even if PO is not released. You may take organizational measures to restrict the usage or you may check for authorization concept - Refer the note: 773003 - MIGO: No authorization object for action/reference document
       If you are below EHP 4, there is no standard functionality available for the requirement as of my knowledge. If so, you may go for development to restrict the same.
    Regards,
    AKPT

  • Goods Issue against Reservation (Error in MB1A)

    Hi All,
           While doing Goods Issue (MB1A 261 Mov type) against Reservation for Production Order, even if Reserved qty and entered qty is same, we are getting the error message "Entered Qty is more than Reserved Qty for material".
         But for that particular material , in CO03, in Component Overview, different line items are there with different batches. So in reservation list, with same reservation number, different line items are there for that particular material having different batches. But in MMBE, for each batch, stock is available
    Please help to resolve this issue.
    Regards,
    Rosh

    Dear Rosh,
    What is the error message that you are getting?post the error no and class,just double lcik on the error message and check the
    diagnosis for the same error message.
    Are the components batch managed materials?check in CO03 in the top menu>goto>documented goods movements,check
    whether already some goods movements has been performed
    Check and revert
    Regards
    S Mangalraj

  • RF Interface for Goods Issue - IM Level

    Hi Experts,
    We have a requirement for barcode. Standard RF is not having any interface for GI transaction at Inventory Management level. Only at WM level, for confirming TO we have STD RF interface. We want to introdue RF interface at IM level thru development but for this the pre-requisite should be the TO generation.
    For example when I create any reservation against cost center, Maintenance order, Project etc. The system should able to generate a TO in backgroud. This should happen before actual GI, i.e. just immediately after creating a reservation.
    Appreciate if you can let me know whether it can achieved thru configuration settings or any other parameters.
    Pls suggesst.
    Regards,
    Venu

    Hi Venu,
    There is a work around you can follow if RF scanning is not available at IM level.
    You must be scanning the RF or Barcodes before issuing them to cost center or project or production order at the end of scanning you must be getting a scanfile with material its EAN/UPC Numbe, batch number and quantity. You can use this file and using some suitable BADI for Goods Issue. I guess by this you will avoid unnecessery Zdevelopment and even GI will be automated.
    Hope it helps
    Regards
    Shrinivas

  • Dump while doing goods issue against order with movement type 261

    Hi Team,
    We are integrating Asset management process along with the goods issue against the order which is created with a business partner for movement type 261.
    when we try to complete the process the system gives us a dump as described below.
    please look through the dump and advice for the same.
    Short text
        The current application triggered a termination with a short dump.
    What happened?
        The current application program detected a situation which really
        should not occur. Therefore, a termination with a short dump was
        triggered on purpose by the key word MESSAGE (type X).
    Error analysis
        Short text of error message:
        System error in the FI/CO interface
        Long text of error message:
         Diagnosis
             Updating of the FI/CO interface was called with object type "MKPF"
             yet the checks were run for object type "AMBU".
         System Response
             Checking and updating must be for the same object type.
         Procedure
             It has to do with a system error from the calling applications.
        Technical information about the message:
        Message class....... "RW"
        Number.............. 103
        Variable 1.......... "MKPF"
        Variable 2.......... "AMBU"
       Variable 3.......... " "
       Variable 4.......... " "
    rigger Location of Runtime Error
       Program                                 SAPLMBWL
       Include                                 LMBWLU21
       Row                                     62
       Module type                             (FUNCTION)
       Module Name                             MB_POST_GOODS_MOVEMENT
    46    IF xmkpf-xabln IS INITIAL.                               "note 434093
    47        CALL FUNCTION 'MB_XAB_NUMBER_GET'.                   "note 434093
    48    ENDIF.                                                   "note 434093
    49
    50 ENHANCEMENT-POINT MB_POST_GOODS_MOVEMENTS_01 SPOTS ES_SAPLMBWL STATIC.
    51
    52 ENHANCEMENT-POINT MB_POST_GOODS_MOVEMENTS_02 SPOTS ES_SAPLMBWL.
    53    CALL FUNCTION 'MB_CREATE_MATERIAL_DOCUMENT_UT'
    54         EXCEPTIONS
    55           error_message = 4.
    56 *  As soon as we have started to put things into UPDATE TASK, we must
    57 *  ensure that errors definitely terminate the transaction.
    58 *  MESSAGE A is not sufficient because it can be catched from
    59 *  external callers which COMMIT WORK afterwards, resulting in
    60 *  incomplete updates. Read note 385830 for the full story.
    61    IF NOT sy-subrc IS INITIAL.
    >>>       MESSAGE ID sy-msgid TYPE x NUMBER sy-msgno WITH            "385830
    63                  sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    64 *     MESSAGE A263.
    65    ENDIF.
    66 * Optische Archivierung
    67 * Spaete Erfassung mit Barcode
    68 * Redesign of barcode handling -> note 780365
    69   PERFORM barcode_update(sapmm07m) USING xmkpf-mblnr
    70                                          xmkpf-mjahr
    71                                          barcode.
    72
    73   MOVE-CORRESPONDING xmkpf TO emkpf.
    74   CALL FUNCTION 'MB_MOVEMENTS_REFRESH'
    75     EXCEPTIONS
    76       error_message = 4.
    77    MOVE-CORRESPONDING xmkpf TO emkpf.
    ource Code Extract
    ine  SourceCde
      32 *    BKPF as well. There is no other way to forward XBLNR to FI as not
      33 *    every document is posted by MB_CREATE -> a new function module in
      34 *    MBWL for transferring the information, called by FI, meant to load
      35 *    the complete function group for all MBxx postings when this isn't
      36 *    required (Performance). Would be the better way to transport the
      37 *    information after switching off MBxx in later release.
      38 *    corresponding IMPORT ... FROM MEMORY ... can be found in
      39 *    AC_DOCUMENT_POST (FORM FI_DOCUMENT_PREPARE (LFACIF5D))
      40      l_mem_id = 'MKPF-XBLNR'.                                   " 641365
      41      EXPORT xblnr = xblnr_sd TO MEMORY ID l_mem_id.             " 641365
      42    ELSE.                                                        "1245374
      43      l_mem_id = 'MKPF-XBLNR'.                                   "1245374
      44      FREE MEMORY ID l_mem_id.                                   "1245374
      45    ENDIF.

    Couple of notes are mentioned (385830, 780365 etc) and check whether these notes are applied.  If so, check with the ABAPer and go through the source code corrections explained in the respective notes.
    You may also go through the following notes
    1)  Note 386656 - FBV4: RW103 'System error in the FI/CO interface'
    2)  Note 388316 - RW103 "System error in the FI/CO interface"
    3) Note 543463 - Inconsistent Posting in budgetary ledger and/or RW102/RW103
    thanks
    G. Lakshmipathi

  • Post a good issue against an outbound delivery with movement type 601 K

    Hello,
    according to my business scenario I need to manage the stock of different vendors into the client's location (plant) at storage location level and I need to post the good issue against an outbound delivery to decrease the stock level.
    Since the owner of the goods isn't my client the item is managed only at quantity level (not value) so I'm not interesed in the accounting document.
    To do it I'm using the functionality related to the vendor consignment stock but I'm not able to post the good issue against an outbound delivery using the movemement type 601 and the special stock indicator equal to K.
    In particular I've tried in two different ways:
    - setup the consignment stock indicator (= K) into the sales item category, but when I post the goods issue the system is not able to find out the right vendor
    - to create a stock determination rule instead of the setting previous described, but the system display an error message (Fld selectn for mvmt type 601 / acct L534200770 differs for Cost center (010) ) even if the accouting is not relevant in my scenario
    Can you suggest me how the system has to be setup in order to cover my requirements?
    Thanks in advance,
    Alessandro

    Hi,
    Please clarrify which material type you are using in this scenario? I suggest you to use material type UNBW (no value updation will be there) and create a material master.  Use special stock indicator K. Proceed with 601K to do GI. Hope it works. Thanking you.

  • Different movement types for goods issue via outbound delivery

    Hi gurus,
    How can I use different movement types for goods issue via outbound delivery?
    Thanks&Best Regards,
    Burcu

    To use different schedule lines, we need different item types and different document types. Is that right?
    Is there a user exit in outbound delivery to post goods issue?
    Thanks...

  • Different movement types for Goods Issue for different Order Types

    Hello Experts,
    Can we maintain different movement types for Goods Issue for different Order Types at the time of automatic creation of reservations?
    Thanks and regards,
    Satyajit

    Satyajit,
    Folow the link given,
    Re: How to add new movement types when creating reservation?
    Hope this helps you.
    SmanS

  • BAPI for Goods Issue (MIGO) movement type 351 with reference to PO

    Hi,
    Is there an BAPI for Goods issue in MIGO with reference to PO movement type 351, i tried using "BAPI_GOODSMVT_CREATE", but there is no PO field in this, is there any other BAPI's available for the same?
    Thanks in Advance,
    Santosh

    for goods mvt type , the available is that itself . for 351 mvt type Po number is not required .
    if its a must , create a Z bapi with additional field  for PO and make it as reference .

Maybe you are looking for

  • Applet and JDBC

    Ok, I have read that there is no way to attach to a remote database via a applet where they are not running on the same box. I have to ask this question so be patient with me. I have an applet that accesses a SQL Server2000 database using Microsoft�s

  • Problem adding music to my phone

    When ever I try to add music to my phone, it prepares to sync but then skips syncing and say that it is copying diagnostic information and then goes back to try and sync. After that it trys to add the music then just deletes all the music I already h

  • Classical to ALV classical

    Hi All, Please help in converting classical report to classical ALV report as in my classical report between the program  four Internal table were used for calculation , now after calculation block i have deleted all the WRITE statement to convert it

  • Why does Itunes automatically change the genre of my songs?

    Why does Itunes automatically change the genre of my songs? I have assigned specifit genres but they're constantly changed without me doing it. ITs annoying. Does anyone know how i can stop this?

  • How to get locale from IE

    In my project i get the locale from FlexContext; like this locale  = FlexContext.getHttpRequest().getLocale(); when i change the locale(French, Spanish....) from internet explorer (tools>>internet options>>language) this function always returns en_US