BAPI for posting GR with reference to inbound delivery

Hi Gurus,
Please suggest me a BAPI to post the GR with respect to inbound delivery. Also, it would be better , if the partial GR can be done using this BAPI. We need to use a BAPI, so that the material document flow is updated as well after the processing of BAPI.
I can not use the BAPI: BAPI_GOODSMVT_CREATE, as this does not update the material document flow. Also, the BAPI BAPI_INB_DELIVERY_CONFIRM_DEC can not be used, as this BAPI does not let me do a partial GR.
Regards,
Neha Gupta

Hi ,
thank you for quick response.
FM L_TO_CREATE_DN.. use to create wrt to Delivery number(all line items together), but in current scenario want to create TO
for single line item and also with partial quantity .
Regards,
Madhavi

Similar Messages

  • Bapi for PO creation with reference to Purchase Requisition - PReq

    Can any one let me know if there is any BAPI to Create PO with reference to PReq. I know we can easily write a BDC for ME21 but... is there a similar functionality via BAPI's ?

    Try
    BAPI_PO_CREATE1
    check its documentation in SE37 for detail documentation..
    Enjoy SAP.
    Pankaj Singh

  • BAPI o FM for posting goods receipt of an inbound delivery

    Hi
       I have a program that post a goods receipt for an inbound delivery using batch input of transaction VL32 (in the first screen of this trx pushing button "Post Goods Recepit"). We need to change it for a BAPI o FM that makes the same process. I've seen other threads of the same issue that makes reference to BAPI_GOODSMVT_CREATE. I've checked it using value 05 of GM_Code
    (other goods receipt) but it doesn't work (I think the movement type I using is not compatible with the code 05). Can anybody tell me if this BAPI can do what i need? In that case, anybody have an example code?  I've seen other FM: MB_CREATE_GOODS_MOVEMENT. Is that a better choice? Example code will be much appreciated
    Thanks and regards
    Dani

    Check whether there is any BTE from FIBF and use it accordingly.
    Also check from SWEL whether any event is getting published when the GR is being done.
    If none of the above works try to find some user Exit where you can code the needful.
    Thanks
    Arghadip

  • BAPI for posting account with special GL indicator

    Hi all,
    is there any other BAPI except than BAPI_ACC_DOCUMENT_POST that can be used to post unt with special GL indicator

    use program RFBIBL00, by setting the TCODE 'FB01' in the structure BBKPF, but if the transaction FB01 does not support the special G/L indicator you require, it may not be possible. I would still give it a shot.
    read the documentation of the program. Additionally, it can be used in conjunction with LSMW for easy setup.
    Re: program to upload vendor/customer items with special GL indicator?

  • Creating outbound delivery with reference to inbound delivery

    Dear all,
    My requirement is as follows:
    I get an inbound delivery from my vendor for the our sales orders. (For n number of sales orders having same shipping point, shipto party ad sold to party, we get one inbound delivery) As of now we are using that inbound delivery and read data from LIPK and LIPS and using 'BAPI_DELIVERYPROCESSING_EXEC' to create outbound delivery.
    But, it is creating one delivery each for every sales order. What we require is to create only one outbound delivery.
    I have searched in forums and tried to use VL10A, VL10C but since the delivery dates of each order are different I cant use those transactions.
    Now I have two options:
    1) Take inbound delivery as reference and create outbound delivery. Are there any FM's or BAPI's for this which will create 1 outbound for each inbound?
    2) Can we combine multiple sales orders into a single delivery when the delivery dates are different.
    Could you please help me.
    Thanks in advance,
    Aravind

    Hi Aravind,
    I am facing some issues while creating Outbound delivery using the BAPI 'BAPI_DELIVERYPROCESSING_EXEC'. I am getting the error message in return parameter as "No instance of object type OutboundDelivery has been created. External reference:"
    If you are successful in creating Outbound delivery, please suggest what may be the issue for this message. Iam passing the exact sales order no and item no., quantty and unit of quantity. Also manual creation of Delivery using VL01N is successful but using the BAPI it is unsuccessful. Please suggest with your valuable points on this.
    Regards,
    Vimala P

  • BAPI for Post Goods Receipt - VL02N(SD) - Return Delivery

    Hi All,
    Could you plz tell me the bapi or function module or bdc for post goods rceipt for return delivery. I am ucing the bapi called BAPI_GOODSMVT_CREATE but it throughing an error. u can not do the these movement types.like this. Here i am using the movement types as - 632,651 and 653. could any one hlp me regarding this issue. its urgnt and i am not able to get the reason.it is working for normal delivery when i use the same for return delivey with the above movement types its not working.
    VL02N - return delivery number -
    > Post goods receipt.
    thnks
    yerukala setty

    Hi,
    Use BAPI 'BAPI_OUTB_DELIVERY_CHANGE'
    Check out this thread, this question is being solved before.
    bapi for vl02n about post goods issue
    Thanks,
    Krishna

  • BAPI for invoice creation with reference SalesOrder

    hi Mr Anjireddy,
    i am able to create invoice with the bapi BAPI_BILLING_CREATEMULTIPLE, here i'm giving the RefDocNo of the SalesOrder, the invoice is generated but i'm not gettting the NetValue, TaxValue.
    plz give the information for that prob,
    eswar

    Hi Vinod,
    This is just idea.
    Get Purchase Requisition details using
    <b>BAPI_REQUISITION_GETDETAIL</b> and then use <b>BAPI_PO_CREATE1</b>. I think there is no Direct BAPI.
    *******Poorna*********

  • Need help about Post  goods movement with refernece to Inbound delivery

    Hi All,
    I am using  FMs MB_CREATE_GOODS_MOVEMENT and MB_POST_GOODS_MOVEMENT and commit to create a goods movement. I am successfully creating the MM doc and also posting.But still the Inbound delivery is open for GR.Is there any other function module or BAPI that creates GR with reference to Inbound delivery and update the document flow?Or is there any parameter in the above FM that sets the inbound delivery.Kindly provide your guidance on the same.
    Best Regards,
    Sailaja.

    I used BAPI_GOODSMVT_CREATE and it posted the GR successfully and the document flow was updated also.
    You have to use GM_code '01' and give the delivery number / item number w/o PO (if I gave the PO additionally, it also worked).
    If still your document flow is not updated then have a look at OSS note 1050944 and check your config.

  • Find a bapi for Creates a Goods Receipt with correspond to Inbound Delivery

    hi expert!
    exist a bapi for tcode:MIGO_GR ( Goods Receipt with correspond to Inbound Delivery)
    i know one bapI  BAPI_GOODSMVT_CREATE can Creates a Goods Receipt,
      but i can't know to use it to Creates a Goods Receipt with correspond to Inbound Delivery.
    or other bapi exist for MIGO_GR?
    Best Regard!

    Hi Vatcan,
    Chek the Inbound Delivery 1st weather you refer the right PO in it
    You can also chek in  PO i
    1 Me23n Go to confirmation tab here you can see the  Inbound delivery  quantity
    2 Chek  which reference document you recived the goods,  (i.e You recived the goods with reference to PO or  Inbound delivery)
    2 Coz if you refer the inbound delivery then syestem will deafult show the inbound quanity
    And yes the actual quanity will update in inbound delivery if you refer the inbound deivery while reciveing the goods

  • BAPI for posting outbound delivery (VL01n)

    Hi,
    I need some help in finding correct function module or BAPI for posting outbound delivery (VL01n), the requirement is I need delivery created with reference to sales order and must take following input.
    1. Shipping Point
    2. Sales Order
    3. Selection Date
    4. Delivery type
    I tried some existing ones and some do not have delivery type input and some without Shipping Point input.
    Please let me know.
    Regards
    Ram.

    Hi
    Please avoid the duplicate post .It is not as per the Forum rules.
    You have posted the same question with this title in ABAP General Forum:
    Outbound Delivery BAPI/Function module
    Neha

  • Bapi for posting IR line item at a time

    Hi....
    Do we have a bapi for posting invoive receipt line item wise instead of posting the PO at a time......this wud be more precise for my requirement.....presently i'm using bapi_acc_document_post but this wud clear the document with single document number.....but i want it to be posted line item wise to see the amount individually item wise instead of combined one....similar to what we have in the IR which shows amount of individual items........

    This is an old bug that keeps popping up:
    https://forums.lenovo.com/t5/T400-T500-and-newer-T-series/Vertical-scrolling-got-reset-everytime-I-use-Ultra-Nav-to-scroll/td-p/343477

  • Control GR Qty while posting with ref. to Inbound delivery

    Hi,
    We have an inbound delivery process where Inbound delivery is made against the PO and subsequently GR is made against the inbound delivery.
    While posting GR via MB0A with ref. to inbound delivery, the qty can be modified at GR Stage. We want to ensure that GR Qty is always equal to Inbound Deliery Quantity.
    Is there any customisation available?? Or it can only be controlled using User Exit only.
    Kindly suggest.
    Regards
    C.A. Shankar

    Hi Shankar,
    For this you have to go for seperate Doc. type for Inbound based GR.
    In the document type you can control the field as display maode in Qty field. this will not possible to change.
    SAM

  • Bapi for posting Outbound Delivery

    Hi,
    Can anyone please let me know about bapi for posting goods issue of outbound delivery.I have checked bapi like
    BAPI_OUTB_DELIVERY_CONFIRM_DEC
    If i use the with this bapi i can't cancellation the outbound with vl09.
    thanks,

    hi,
    i try to doing posting goods issue for outbound delivery out fo the regular progression.
    the posting is automaticly as part of outside program.
    thanks alot,

  • BAPI for post Tax Amount

    Hi,
    Please tell me BAPI for post Tax Amount.
    Which tcode use for Post tax code, is it FB01 or FB60.
    Regards
    Jana

    Hi,
    Use BAPI_ACC_DOCUMENT_POST
    TCodes
    FB41    Post Tax Payable
    FB05    Post with Clearing
    FB01    Post Document
    Edited by: Neenu Jose on Nov 18, 2008 1:15 PM
    Edited by: Neenu Jose on Nov 18, 2008 1:16 PM
    Edited by: Neenu Jose on Nov 18, 2008 1:17 PM
    Edited by: Neenu Jose on Nov 18, 2008 1:18 PM

  • BDC / Bapi For  Post Incoming Payment (F-28)

    Hi
    Im creating BDC for F-28. But it got error coming out.
    >> It says DB05B-PSZAH(02) is not an input field.
    What I do is: First, I search for Line Item then Document Number. Then It return to basic list. Then I loop again for the second Line Item Number and Document Number.
    I can activate the first amount but cannot for the next amount and so on.
    Anybody could help me on this??
    Is there any BAPI for Post Incoming Payment (F-28)?
    Thank you.
    Regards.

    i dont think there is a BAPI for this Transaction...
    i have done a BDC on F-28 myself....pasting the code....hope it helps you....
    *******NOTE********
    the parameter in the subroutine is to see if there is a single document or multiple documents being posted.
    FORM fill_bdc_data_f-28_9005 USING p_i_mult_doc TYPE c.
    **BDC from screen 9005
      DATA : l_amt_bdc(13), l_amt_bdc_remain(13), l_amt_bdc_mult(13),
             l_amt_bdc_mult_remain(13), l_assignment(14), l_period(2),
             l_amount(13).
      CLEAR t_bdcdata.
      REFRESH t_bdcdata.
      PERFORM bdc_dynpro USING 'SAPMF05A' '0103'.
      PERFORM bdc_field USING 'BDC_OKCODE' '=AB'.   "OK CODE - doc overview
    **get user default date format and pass date in that format
      PERFORM convert_date_to_user_format USING bkpf-bldat.
      PERFORM bdc_field USING 'BKPF-BLDAT' w_date.  "cheque date
      CLEAR w_date.
      PERFORM bdc_field USING 'BKPF-BLART' i_blart.  "doc type
      PERFORM bdc_field USING 'BKPF-BUKRS' i_bukrs.  "comp code
    **get user default date format and pass date in that format
      PERFORM convert_date_to_user_format USING bkpf-budat.
      PERFORM bdc_field USING 'BKPF-BUDAT' w_date.  "posting date
      CLEAR w_date.
      l_period = sy-datum+4(2).
      PERFORM bdc_field USING 'BKPF-MONAT' l_period. "period
      PERFORM bdc_field USING 'BKPF-WAERS' 'INR'.    "currency
      PERFORM bdc_field USING 'BKPF-BKTXT' i_bankl.  "doc. hdr. text
      PERFORM bdc_field USING 'BKPF-XBLNR' i_xblnr.  "Ref. Document No.
      PERFORM bdc_field USING 'BSEG-ZUONR' i_zuonr.  "Assignment(Depot Code)
      PERFORM bdc_field USING 'RF05A-KONTO' i_bank_gl. "Bank GL acc
      PERFORM bdc_field USING 'BSEG-GSBER' i_gsber.  "Business Area
      l_amount = bseg-wrbtr.
      PERFORM bdc_field USING 'BSEG-WRBTR' l_amount. "Amount
      PERFORM bdc_field USING 'BSEG-PRCTR' ''.  "Profit Center
    **open items data
      PERFORM bdc_field USING 'RF05A-AGKOA' 'D'.     "Acc type (D=customers)
      PERFORM bdc_field USING 'RF05A-XNOPS' 'X'.     "Std OIs check box
    **end of first screen
    **document overview screen
      PERFORM bdc_dynpro USING 'SAPMF05A' '0700'.    "Overview Screen
      PERFORM bdc_field USING 'BDC_CURSOR' 'RF05A-AZEI1(01)'.     "cursor
      PERFORM bdc_field USING 'BDC_OKCODE' '/00'.     "OK CODE
      PERFORM bdc_field USING 'RF05A-NEWBS' '19'.    "posting key
      PERFORM bdc_field USING 'RF05A-NEWKO' i_kunnr. "customer
      PERFORM bdc_field USING 'RF05A-NEWUM' 'B'.     "Spl GL Indicator
    **for single document selected
      CLEAR l_amt_bdc.
      IF p_i_mult_doc = ''.
    ***new screen - next line item
        PERFORM bdc_dynpro USING 'SAPMF05A' '0303'.
        PERFORM bdc_field USING 'BDC_OKCODE' '=BU'.    "OK CODE
    **for single document, use the bouncing amount calculated earlier
        l_amt_bdc = w_amt_ant_bouncing.
        PERFORM bdc_field USING 'BSEG-WRBTR' l_amt_bdc. "amount
    **due date - same as posting date on screen
    **get user default date format and pass date in that format
        PERFORM convert_date_to_user_format USING bkpf-budat.
        PERFORM bdc_field USING 'BSEG-ZFBDT' w_date.  "due date
        CLEAR w_date.
    **assignment
        CLEAR l_assignment.
        CONCATENATE t_seldoc_ant_bouncing-belnr
                    t_seldoc_ant_bouncing-gjahr INTO l_assignment.
        PERFORM bdc_field USING 'BSEG-ZUONR' l_assignment. "assignment
        PERFORM bdc_field USING 'BSEG-GSBER' i_gsber.
    **if there is some remaining amount, then go for another line item
        IF w_rem_amt_ant_bouncing > 0.
          PERFORM bdc_field USING 'RF05A-NEWBS' '15'.    "posting key
          PERFORM bdc_field USING 'RF05A-NEWKO' i_kunnr. "customer
    **new screen
          PERFORM bdc_dynpro USING 'SAPMF05A' '0301'.
          PERFORM bdc_field USING 'BDC_CURSOR' 'BSEG-ZTERM'. "CURSOR
          PERFORM bdc_field USING 'BDC_OKCODE' '=BU'.    "OK CODE-ENTER
          l_amt_bdc_remain = w_rem_amt_ant_bouncing.
          PERFORM bdc_field USING 'BSEG-WRBTR' l_amt_bdc_remain.
          PERFORM bdc_field USING 'BSEG-ZTERM' '0001'.
    **AGAIN
          PERFORM bdc_dynpro USING 'SAPMF05A' '0301'.
          PERFORM bdc_field USING 'BDC_CURSOR' 'BSEG-WRBTR'. "CURSOR
          PERFORM bdc_field USING 'BDC_OKCODE' '=BU'.    "OK CODE-SAVE
          PERFORM bdc_field USING 'BSEG-WRBTR' l_amt_bdc_remain.
          PERFORM bdc_field USING 'BSEG-ZTERM' '0001'. "pmt term -hardcoded
          PERFORM bdc_field USING 'BSEG-SKFBT' l_amt_bdc_remain.
        ENDIF.
    **multiple documents
      ELSE.
    **initialize remaining amount to amt entered on screen
        l_amt_bdc_mult_remain = bseg-wrbtr.
        LOOP AT t_seldoc_ant_bouncing.
          IF l_amt_bdc_mult_remain > 0.
            IF bseg-wrbtr > t_seldoc_ant_bouncing-rem_amt.
              l_amt_bdc_mult = t_seldoc_ant_bouncing-rem_amt.
            ELSE.
              l_amt_bdc_mult = bseg-wrbtr.
            ENDIF.
    **remaining amt = screen amt - amt calculated above.
            l_amt_bdc_mult_remain = l_amt_bdc_mult_remain - l_amt_bdc_mult.
            PERFORM bdc_dynpro USING 'SAPMF05A' '0303'.
            PERFORM bdc_field USING 'BDC_OKCODE' '=BU'.    "OK CODE
            PERFORM bdc_field USING 'BSEG-WRBTR' l_amt_bdc_mult. "amount
            PERFORM bdc_field USING 'BSEG-GSBER' i_gsber.  "Business Area
    **due date - same as posting date on screen
    **get user default date format and pass date in that format
            PERFORM convert_date_to_user_format USING bkpf-budat.
            PERFORM bdc_field USING 'BSEG-ZFBDT' w_date.  "due date
            CLEAR w_date.
    **assignment
            CLEAR l_assignment.
            CONCATENATE t_seldoc_ant_bouncing-belnr
                        t_seldoc_ant_bouncing-gjahr INTO l_assignment.
            PERFORM bdc_field USING 'BSEG-ZUONR' l_assignment. "assignment
    **posting key 19 for all but last document
            PERFORM bdc_field USING 'RF05A-NEWBS' '19'.    "posting key
            PERFORM bdc_field USING 'RF05A-NEWKO' i_kunnr. "customer
            PERFORM bdc_field USING 'RF05A-NEWUM' 'B'.     "Spl GL
          ENDIF.
        ENDLOOP.
      ENDIF.
    **post remaining amount
      IF p_i_mult_doc = 'X'.
    **new screen if there is some amount left
        IF l_amt_bdc_mult_remain > 0.
    **posting key 15 with remaining amount
          PERFORM bdc_field USING 'RF05A-NEWBS' '15'.    "posting key
          PERFORM bdc_field USING 'RF05A-NEWKO' i_kunnr. "customer
          PERFORM bdc_field USING 'RF05A-NEWUM' ''.     "Spl GL
    **new screen
          PERFORM bdc_dynpro USING 'SAPMF05A' '0301'.
          PERFORM bdc_field USING 'BDC_OKCODE' '=BU'.    "OK CODE
          PERFORM bdc_field USING 'BSEG-WRBTR' l_amt_bdc_mult_remain.
          PERFORM bdc_field USING 'BSEG-ZTERM' '0001'. "pmt term - hardcoded
        ELSE.
    **if no amount is left, no need for a further line item
          PERFORM bdc_field USING 'RF05A-NEWBS' ''.    "posting key
          PERFORM bdc_field USING 'RF05A-NEWKO' ''. "customer
          PERFORM bdc_field USING 'RF05A-NEWUM' ''.     "Spl GL
        ENDIF.
      ENDIF.
    **clear variables
      CLEAR : l_amount, l_assignment, l_amt_bdc,
              l_amt_bdc_remain,l_amt_bdc_mult, l_amt_bdc_mult_remain.
    ENDFORM.                    " fill_bdc_data_F-28_9005

Maybe you are looking for

  • Java script does not seem to be working with Firefox 3.6

    I am using Firefox 3.6, and recently installed MAC OS 10.6.5. I had a problem today working on a website and java script would not work with this browser. I was able to work on Safari though...

  • Can I replace the power module in my iMac G4 17" Flat Screen computer?

    My iMac G4 17" Flat Screen will no longer power up. It has been getting slower and slower the longer it was running until finally I have no power at all. Can I replace the power module, where do I get one, how much do they cost and how big a job is i

  • Cannot rebuild iPhoto library

    My iPhoto database is damage (inconsistent). When I try to open iPhoto I just get told to select a library. When I click on the open button nothing happens. The common advice is to: "hold down the command and option (or alt) keys while launching iPho

  • N Why no scroll bar in column view?

    When in column view, the finder window extends past the bottom of my screen, yet there is no scroll bar and I cannot reposition the window so I can see the bottom or even resize it since the bottom of the window is off my screen. If there is a scroll

  • Macro to convert Units to dollars (Product master)

    Hi experts, We want to forecast in units and convert units to dollars . What is the easiest way to convert units to dollars in planning book . Is there any way I can write a macro which picks up unit forecast in planning book and multiply with unit p