Need RFC which can post the Goods Receipt

Hi,
My scenario is to post the Goods receipt, by using file and after posting the Goods Receipt i want the acknowledgement whether it is successful or unsuccessful. There is an idoc MBGMCR02 which can post the Goods Receipt but application acknowledgement is not possible in file to idoc scenario, so now i am searching for a RFC so that i can handle this situation using BPM synchronous process. Kindly suggest any RFC or BAPI which can post the Goods Receipt.
Thanks & Regards,
Venkat

Hi Venkat,
As per my understanding this is a "File To (Inbound) Proxy" scenario, in which you can use the BAPI "SD_SHIPMENT_POST_GOODS_ISSUE" to do the PGI into R/3 system.
To perform this, you can go-ahead with the steps as mentioned below:
Source (XI) System:
1. Create the source & target data type in XI.
2. Do required mapping in XI.
3. In configuration directory, use the adapter type "XI" on the receiver communication channel.
Target (R/3) System:
1. Call transaction "SPROXY".
2. Create the interface class (double click on Inbound message Interface, inside your namespace in R/3).
3. Inside the class (proxy), create an internal table to keep all the records which will be coming from XI after your mapping.
4. Pass all the data to above create internal table.
5. Now, call function module "SD_SHIPMENT_POST_GOODS_ISSUE" and pass all required data from ur internal table to this FM (BAPI).
Note: Kindly read about this FM (BAPI) first in SE37 under "Function Module Documentation".
6. Do commit work after calling the FM (BAPI).
I hope this will help you to resolve all your queries.
Regards,
Sarvesh Singh

Similar Messages

  • Can't able to post the Goods Receipt in MB31

    I had create plant - 7177, Warehouse-I - 717 (For finished material) & Warehouse-II - 718 (For Semi finished material). While creation of finished material in MM01, i was entered the wherehouse no as 718. With this parameter, i cant able to post the goods receipt in MB31- For Finished Material. An error message appeared as "material not exit in the WH-717 in plant 7177". What is the procedure to solve this problem?

    Hi,
    In order header, go to goods receipt tab, check the storage location maintained. I think this storage location / plant combination is not linked to warehouse 717.
    Hope this answers your query.
    If helpful award points
    Regards,
    Vivek

  • Changing the G/L Account while Posting the Goods Receipts in MIGO

    Hi All,
    I have requirement in which G/L Account needs to be changed based on some validation while Posting the Goods Receipt in MIGO.
    I have created exit in OBBH by copying the standard SAP Program RGGBS800 in view V_T80D.
    I changed following entry in view V_T80D:
    GBLS     ZGGBS800     Val/sub:Exits for substitution
    Now Inside program ZGGBS800, I have written the logic to change the BSEG-HKONT value with the new G/L Account which gets called inside the standard function module G_VSR_SUBSTITUTION_CALL.
    FORM U999.
       DATA : V_HKONT TYPE BSEG-HKONT.
       clear : V_HKONT.
       SELECT SINGLE SAKNR FROM ZMASH1 INTO V_HKONT WHERE MATNR = BSEG-MATNR AND WERKS = BSEG-WERKS.
         IF SY-SUBRC EQ 0.
           BSEG-HKONT = V_HKONT.
         ENDIF.
    ENDFORM.
    After the execution of the above code the value of BSEG-HKONT changes with new value of V_HKONT but after this when I go further in Standard SAP code of function module G_VSR_SUBSTITUTION_CALL, there is one subroutine FORM EXP_TAB_009_BSEG  being called which changes the value of BSEG-HKONT to initial value of HKONT also while moving the data from BSEG to TEMP_STRUCT it doesn't passes the HKONT value, which I want it be passed as I want the changed value to be passed finally to OUT_RESULT. Please look at the code below.
    Following is the SAP standard code of subroutione FORM EXP_TAB_009_BSEG :
    FORM EXP_TAB_009_BSEG
             USING
               IN_ORIG STRUCTURE        BSEG
            CHANGING
               OUT_RESULT STRUCTURE     BSEG
               B_RESULT.
      DATA:  ORIG LIKE BSEG.
      DATA:  BEGIN OF TEMP_STRUCT,
             ABPER                          LIKE   BSEG-ABPER,
             AUGGJ                          LIKE   BSEG-AUGGJ,
             DOCLN                          LIKE   BSEG-DOCLN,
             FIPOS                          LIKE   BSEG-FIPOS,
             FISTL                          LIKE   BSEG-FISTL,
             FKBER                          LIKE   BSEG-FKBER,
             FKBER_LONG                     LIKE   BSEG-FKBER_LONG,
             GEBER                          LIKE   BSEG-GEBER,
             GMVKZ                          LIKE   BSEG-GMVKZ,
             GRANT_NBR                      LIKE   BSEG-GRANT_NBR,
             HKTID                          LIKE   BSEG-HKTID,
             HZUON                          LIKE   BSEG-HZUON,
             INTRENO                        LIKE   BSEG-INTRENO,
             MEASURE                        LIKE   BSEG-MEASURE,
             PARGB                          LIKE   BSEG-PARGB,
             PPA_EX_IND                     LIKE   BSEG-PPA_EX_IND,
             PPRCT                          LIKE   BSEG-PPRCT,
             PRCTR                          LIKE   BSEG-PRCTR,
             PRODPER                        LIKE   BSEG-PRODPER,
             PRZNR                          LIKE   BSEG-PRZNR,
             PSEGMENT                       LIKE   BSEG-PSEGMENT,
             SAMNR                          LIKE   BSEG-SAMNR,
             SCTAX                          LIKE   BSEG-SCTAX,
             SEGMENT                        LIKE   BSEG-SEGMENT,
             SGTXT                          LIKE   BSEG-SGTXT,
             SRTYPE                         LIKE   BSEG-SRTYPE,
             UZAWE                          LIKE   BSEG-UZAWE,
             XREF1                          LIKE   BSEG-XREF1,
             XREF2                          LIKE   BSEG-XREF2,
             XREF3                          LIKE   BSEG-XREF3,
             ZUONR                          LIKE   BSEG-ZUONR,
             ZZBUSPARTN                     LIKE   BSEG-ZZBUSPARTN,
             ZZCHAN                         LIKE   BSEG-ZZCHAN,
             ZZLOB                          LIKE   BSEG-ZZLOB,
             ZZLOCA                         LIKE   BSEG-ZZLOCA,
             ZZPRODUCT                      LIKE   BSEG-ZZPRODUCT,
             ZZREGION                       LIKE   BSEG-ZZREGION,
             ZZSPREG                        LIKE   BSEG-ZZSPREG,
             ZZSTATE                        LIKE   BSEG-ZZSTATE,
             ZZUSERFLD1                     LIKE   BSEG-ZZUSERFLD1,
             ZZUSERFLD2                     LIKE   BSEG-ZZUSERFLD2,
             ZZUSERFLD3                     LIKE   BSEG-ZZUSERFLD3,
             END OF TEMP_STRUCT.
      IF IN_ORIG = BSEG .
        B_RESULT = B_FALSE.
        OUT_RESULT = IN_ORIG.
        EXIT.
      ENDIF.
      MOVE-CORRESPONDING BSEG TO TEMP_STRUCT.
      OUT_RESULT = IN_ORIG.
      MOVE-CORRESPONDING TEMP_STRUCT TO OUT_RESULT.
      IF IN_ORIG = OUT_RESULT .
        B_RESULT = B_FALSE.
      ELSE.
        B_RESULT = B_TRUE.
      ENDIF.
      BSEG = OUT_RESULT.
    ENDFORM.                               " EXP_TAB_009_BSEG
    I need the value of BSEG-HKONT should be passed to OUT_RESULT-HKONT.
    I am not able to find any userexit or BADI for this.
    Please guide me on this.
    Thanks,
    Chandravadan
    Edited by: Chandravadan Jaiswal on May 8, 2009 2:18 PM
    Edited by: Chandravadan Jaiswal on May 8, 2009 3:45 PM

    Hi
    I also need to change hkont while posting MIGO and MIRO transaction..
    Any suggestion for this?
    Here's my problem.. Substitution of account(HKONT) when posting in MIGO/MIRO

  • Error when posting the goods receipt

    Hi we have recently successfuly updated 4.6 B to ECC 6.0.But when i am doing captive consumption by 949 Mvt. through process message system gives an error that
    Error when posting the goods receipt
    Message no. CB345
    Diagnosis
    With the selected process message, a goods receipt for the order was reported to the warehouse (destination ZPI1).  However, an error occurred when the goods receipt was posted.
    Please do needful.
    Regards,
    PP

    Hi Daniel,
    This is the first time i am coming across an issue like this.
    neverthless from a logical front,
    1. Remove Cost center as a valid receiver in Settlement Profile.
    2. Your OKB9 setting are pretty much good. No need to worry about it.  Becasue, OKB9 only will work if the system doesn't identify any other cost object. In this case Production Order is an automatic cost object which system should have taken.
    3. Check the Settlement rule when you have created Production Order. It should have been MAT.
    4. I hope you are creating Production Order with Material (using CO01 and not CO07)
    5. Make sure in OPL8, the default rule in controlling tab is PP1.
    Once all these are fine, i do not see any reason why you will get your probelm.
    Please check and revert back to me if the problem still persists.
    Best Regards
    Surya

  • Error while posting the Goods Receipt

    Hi Friends,
    I am having an issue while posting the Goods Receipt.
    I am getting the error "Balance not zero: 1.000,00- debit: 0,00 credit: 1.000,00". I am using the Purchase Order with Account Assignment category P and K. When ever I used the account assignment category, I am getting this type of error. I have checked the configuration and every thing is OK. System is not able to debit the G/L account which is mentioned in the Purchase Order, hence the problem. However, I think system is able to get the G/L account (to Credit the amount) from Automatic Account determination.
    Would like to know if any one come across similar type of problem and resolved it.
    We have recently upgraded the system from 4.7 to ECC 6.0.
    Apprciate the help.
    Thank you,
    Prakash

    Hi
    Thank you for the reply.
    I have checked what you have mentioned. While creating PO it is determining the G/L account automatically through the assignments in OBYC. Even then I am getting the error while doing the Goods Receipt.
    Any one is having any idea?
    Thank you,
    Prakash
    Edited by: Prakash KM on Dec 17, 2010 6:26 PM

  • IDOC_INPUT_DESADV for IDOC input deliveries can post also good receipt?

    Hello all:
    Does any body can help me  to know if idoc with Process code DESA that call function module IDOC_INPUT_DESADV besides creates an input delivery (like vl31n) can ALSO POST THE GOOD RECEIPT if the confirmation control key at item level is configure to auto post the GOOD RECEIPT?
    Currently my idoc entry creates the delivery nevertheless the Good receipt is not posted. If manually on VL31N a delivery is created the Good receipt is posted automatically.
    Thanks in advance!

    Hi,
    As long as you set the indicator of automatic GR process (select 2--Register and receive automatically), this applies both to the manual creation of inbound deliveries and to their creation via IDoc. If you still get the problem, you can check the assigned status in the inbound delivery on the tab page status overview, I think you can find some hint
    Good luck
    Z.T

  • Is it possible to post a good issue movement before post the good receipt m

    Is it possible to post a good issue movement before post the good receipt  movement for the same material, into the same period?
    We try to explain better, today we've done a test:
    Step 1 :   We have created a material, wich material type is HAWA, with price control V, and 1 euro for 1 ST.
    Step 2 :   We have post a good receipt movement, 561 of this material  with 1000 ST of stock, and on posting date: 05.05.2011.
    Step 3 :   Then, we have post a good issue movement, 562 of the same material, with 500 ST of stock,  on posting date: 01.05.2011 ( so that, the posting date of the 562 is before from the posting date of 561).
    And it has worked, so that on trx "mb51" for this material we saw:
    PLANT1-----STO1---- 562-----  Mat. Doc.101.05.2011--
    500-   ST
    PLANT1-----STO1---561Mat. Doc.205.05.2011--
    1000  ST
    And with "fbl3n" for this G/L account , the same situation:
    G/LAccount1--DocumentNo101.05.2011--99--
    500-  EUR
    G/LAccount1--DocumentNo205.05.2011--89--
    1000  EUR
    We don't like this fact, someone knows how is it possible? The negative stocks aren't flagged!!!!
    Edited by: Ariana Serrano Aguila on May 5, 2011 5:50 PM

    Hi,
    Though sap allows like this ,, the document created will be with the date of the actual posting system date. If you look into the MSEG table you will get to know this.
    In theory .. this kind of practice should not be allowed .
    since this is a 562 which is a individual  entry may be system would have allowed.you try a 102 .
    Regards,

  • Is it possible to post a good issue movement before post the good receipt

    Is it possible to post a good issue movement before post the good receipt  movement for the same material, into the same period?
    We try to explain better, today we've done a test:
    Step 1 :   We have created a material, wich material type is HAWA, with price control V, and 1 euro for 1 ST.
    Step 2 :   We have post a good receipt movement, 561 of this material  with 1000 ST of stock, and on posting date: 05.05.2011.
    Step 3 :   Then, we have post a good issue movement, 562 of the same material, with 500 ST of stock,  on posting date: 01.05.2011 ( so that, the posting date of the 562 is before from the posting date of 561).
    And it has worked, so that on trx "mb51" for this material we saw:
    PLANT1           STO1         562           Mat. Doc.1           01.05.2011            500-  ST
    PLANT1           STO1         561           Mat. Doc.2           05.05.2011           1000  ST
    And with "fbl3n" for this G/L account , the same situation:
    G/LAccount1            DocumentNo1            01.05.2011        99            500-  EUR
    G/LAccount1            DocumentNo2            05.05.2011        89            1000  EUR
    We don't like this fact, someone knows how is it possible? The negative stocks aren't flagged!!!!
    Edited by: Ariana Serrano Aguila on May 5, 2011 5:50 PM

    SAP only checks if there is enough quantity in the period (month), it does not check if there is enough stock at date level.
    there is no stock stored in any table for a given date. SAP would need to run the logic of MB5B to calculate the stock at a certain date, this would cause tremendous performance issues.
    you either have to do this calculation yourself in a user exit, or you better train your users.

  • Components were not consumed while posting the goods receipt through VL32N

    Hi Experts,
    We are into technical upgrade. We are upgrading from 4.7 to ECC 6.0. We are facing one issue. The issue is while posting the goods receipt for the subcontracting shceduling agreement through VL32N (Inbound Delivery) component materials were not consumed. While displaying the material document for the GR, could not find any compponent materials consumed with movement type 543, where as if I use the MIGO transaction code for the same inbound delivery, I could see the component materials were consumed with movement type 543.
    Could anybody tell us how to fix this issue if they come across.
    Appreciate your reply.
    Regards
    Bala

    Hi,
    Try checking below SAP notes
    Note 645119 - Problems with subcontracting using delivery
    338119 - Goods receipt in inbound delivery for SC order
    Hope this helps
    Reg
    Dheeraj

  • Problem in posting the goods receipt with reference to the inbound delivery

    Hi All,
    Below is the explanation of the scenario:
    1. Materials are purchased (PO created in CAS as order unit) and inbound delivery document is created in cases as well.
    2. When the TO is created for put away (we are performing put away using the hand held devices) the line item is split resulting in new line item number created
    3. When the TO is confirmed the del quantity on the split line item is zeroing out and as a result the system is treating it as a service item with zero del quantity and is stopping from performing the GR with respect to the inbound delivery document
    And also the inbound delivery is disappearing from the confirmation tab on the PO)
    This is happening only with the materials which have an alternate unit set up in the material master (in this scenario CAS is the order unit and JAR is the base unit of measure)
    Can some one help fix this?

    Hi,
    There is no standard option available and I don't think that there is any feasible way of stopping this without the use of a user exit (as already suggested).
    But even the user exit option would be complex because it would have to block off the PO number field after enter (or any other key) was pressed.
    It would also have to stop the use of multiple entries via the "find" option.
    If you have a valid reason for doing this, have you thought of trying to get your users to do as they are told instead of changing the system?
    Why is it important to have one PO per GR ?
    Steve B

  • How i can change the Goods Receipt flag in PO me21n

    Hi,
    While creating the material PO.I am seeing the GR Flag it is activated always and i can see in a display mode.
    I want to change GR Flag into editable mode.I know it is possible but i am missing navigation.Please help me how i can achieve this.
    Thanks
    Micheal

    Hi,
    Simply Go To Spro-->MM->Purchasing-->Account Assignment>Maintain Account Assignment Categories>Select The account assignment for which you are creating the P.O-->And Double Click It>Unclick the button GR Ind. Firm->Save and create now PO you can edit it.
    Lekhram
    Award Full Points ...Haha ..enjoy.

  • Substitution - Baseline Date to be replaced by the Goods Receipt date

    Dear Forum,
    We have the payment terms defined in the system, with the baseline date corresponding to the 'Document Date' and the credit terms as 60 Days. The users now desire that the Baseline Date should instead correspond to the Goods Receipt Date. To enable this we need to define the substitution such as the Baseline Date at the time of Invoice Verification gets substituted by the Goods Receipt Date, if the GR Date is earlier than the IV date.
    Would appreciate help from the friends as to how to configure this and which feilds to be chosen and replaced.
    Thanks!
    Regards,

    Hi
    You can make the Baseline Date in Invoice (MIRO) with Goods Receipt Date using BADI.
    BADI -->MRM_PAYMENT_TERMS
    Tell your ABAP Guy to work on this BADI.
    In the BADI,  MRM_PAYMENT_TERMS Read the Value in WEBUD of Internal Table TI_DRSEG and Pass it into E_ZFBDT.
    Also if the Baseline Date is changed manually, then after posting you can see the Goods Receipt Date in Baseline Date.
    This resolves your issue.
    regards
    venkat

  • Posting a goods receipt

    Hello,
         I need to post a goods receipt on receipt of warehouse stock transfer receipt advice.Can I use BAPI_GOODSMVT_CREATE to do that?or is there any other way.And after posting the goods receipt i need to call a QA11 and change the status of the goods received from QI to UR.Can any one outline the steps?I have planned to use SHPCON/DELVRY03.
    Thanks,
    Larry

    Hi,
    Try
    BAPI_ACC_GOODS_MOVEMENT_POST OR
    SD_SHIPMENT_POST_GOODS_ISSUE OR
    MB_POST_GOODS_MOVEMENT       OR
    to post a goods receipt.
    To change the status use the FM STATUS_CHANGE_EXTERN.
    Hope this helps...
    Lokesh
    Pls. reward appropriate points

  • Looking for BAPI which can post condition records.

    Hi ,
    I am looking for a bapi which can post the condition records. I need to post Maximum Condition Base Value KONP-MXKBAS along with other fields. I found already one bapi BAPI_PRICES_CONDITIONS which has this field but if I execute
    the bapi with BAPI_TRANSACTION_COMMIT it is not posting any data at all. So could any one please help me out of this or if any other alternate BAPI* or any other solution is possible here. But one thing to mention here that LSMW,BDC is not possible to use.
    Thanks in advance.
    Best Regs
    Somnath

    Hi!
    In most common, standard BAPIs are working correctly.
    Here are a the following cases if they aren't:
    - standard fault, mostly has a correction note at OSS (very rare case)
    - the BAPI is not finishing succesfully. In this case, you always have to check the return table of the BAPI (BAPIRET2, or RETURN, etc...). In this table there is the error. Mostly it occurs due to incorrect customizing settings.
    Please check the return table of your BAPI, and you'll find out the problem.
    Regards
    Tamá

  • Need a Badi to look the good issue status for prod order before good receipt in MIGO

    Hi ,
    Need a Badi to look the good issue status for compoents for prod order before good receipt in MIGO.
    Example : There are 10 comps need to be issued to production order to make any assy but 6 comps were issued
    and remaining 4 comps are not yet issued.,in this situation if I try to do goods receipt for prod order through MIGO.,system should populate the warning
    message saying still goods issue are pending for prod order.
    Please advise .
    Thanks
    Prasad

    Hi Prasad,
    Before trying with a BAdI, have you tried to control this behaviour thru the Order confirmation parameters (OPK4)?
    Note that you can have a termination in case of having problems in the goods movements..
    Take a look of this and the SAP help:
    Termination of Confirmation if Incorrect Goods Movements
    Controls if the confirmation is terminated in the event of incorrect goods
    movements.
    Use
    This enables you to terminate the confirmation in the event of incorrect
    items, for example, to prevent postprocessing records.
    Dependencies
    The indicator is only evaluated if either no process control key or one
    process control key has been stored that enbles the goods movements to be posted
    in dialog AND for which the "provide error handling for goods movements"
    indicator is active. If there are incorrect goods movements, the system behaves
    as follows:
    A log is issued that gives information on the incorrect goods movements
    If these incorrect goods movements are determined by inventory management,
    then the option of correcting these errors is offered in the error handling
    If the correction is not successful, the confirmation is terminated
    Kind Regards,
    Mariano

Maybe you are looking for

  • No accessory view in custom table view cells.

    Hello Everyone, I have been having problems with my accessory views in my custom cell views. I am expecting that the accessory views will show up by only setting the accessoryType property correctly. Below is a link to my class for the custom cell vi

  • Can we use receiver enhancement feature for a web service scenario?

    Hi Experts, We have to send across an invoice to web service enabled legacy system from ECC. ECC>ABAP Proxy>SAP PI>SOAP Adapter>Legacy System1 ECC>ABAP Proxy>SAP PI>SOAP Adapter>Legacy System2 Requirement is like if the invoice number starts with 1A,

  • Data source Enhancemnt

    HI , I want to do data source enhancemnt as per the followint logic IF xvbak-vbtyp = 'K' OR xvbak-vbtyp = 'H'). SELECT vbeln posnn rfmng vbtyp_n FROM vbfa     INTO TABLE xvbfa       WHERE vbelv =  xvbak-vbeln       AND   posnv =  xvbap-posnr LOOP AT

  • The remote does not work, when i turn the tv on I see the apple tv and the itune icon on the screen

    the remote on apple tv does not work,when i turn on the tv Isee the appletv and the itune icon on the screen.

  • MacBook Pro - Spinning Beachball

    Hi all, My macbook pro is having serious problems. The original hard disk died a view weeks back, this was confirmed by the apple store in Seattle. When i returned to the UK i bought a WD Scorpio Blue 500GB drive and paid to have it installed and hav