Create Inbound Delivery with Reference to PO using Serial Numbers

I guys.
I didn't find any BAPI  to create an Inbound Delivery with Reference to PO using Serial Numbers so I've made a Function Module with BDCData.
  LOOP AT serial.
    ADD 1 TO ld_count.
    ld_value = serial-sernr.
    CONCATENATE  'RIPW0-SERNR(' ld_count ')' INTO ld_field.
    PERFORM bdc_field USING ld_field ld_value.
  ENDLOOP.
This works fine for 10 entries, but when I'm trying to use 1000 entries in serial Internal Table I'm getting the error: Screen 0000 is too large for internal batch input area - Message no. 00379.
Please note that my issue is the Serial numbers, so don't answer me please with BAPIs that doesnt allow me to deal with this.
Any idea?
Thanks in advance,
Nuno

As I expect, it solved my problem. It's not pretty, but it works...
  PERFORM bdc_dynpro      USING 'SAPLIPW1'       '0200'.
  PERFORM bdc_field       USING 'BDC_CURSOR'     'RIPW0-SERNR(01)'.
  DATA: ld_valor(4) TYPE n,
        ld_next,
        ld_tabix TYPE sy-tabix.
  LOOP AT serial.
    ld_tabix = sy-tabix.
    IF ld_next = 'X'.
      CLEAR ld_next.
      ld_count = 2.
    ELSE.
      ADD 1 TO ld_count.
    ENDIF.
    ld_value = serial-sernr.
    CONCATENATE  'RIPW0-SERNR(' ld_count ')' INTO ld_field.
    PERFORM bdc_field USING ld_field ld_value.
    ld_valor = ld_tabix + 17.
    ld_valor = ld_valor MOD 18.
    IF ld_tabix NE 1 AND ( ld_tabix EQ 19 OR ld_valor EQ 0 ).
      ld_next = 'X'.
      PERFORM bdc_field       USING 'BDC_OKCODE'     '=PNPG'.
      PERFORM bdc_dynpro      USING 'SAPLIPW1'       '0200'.
      PERFORM bdc_field       USING 'BDC_CURSOR'     'RIPW0-SERNR(01)'.
    ENDIF.
  ENDLOOP.
  PERFORM bdc_field       USING 'BDC_OKCODE'     '=RWS'.

Similar Messages

  • Function module to create Inbound delivery with reference to Purchase Order

    Hi experts,
    I want to create Inbound delivery with refernce to Purchase Order. But I want to create item wise. For example If one purchase order is there with 10 line items. 10, 20, 30, 40, 50......100.
    If I am showing report for Purchase Order with select option and if I select first 5 line items 10, 20, 30, 40, 50 then my program should be create one Inbound delivery for selected line items only. I have tried BDC for Tcode VL31N, but its not worked. Is there any Function module to create Inbound delivery with reference to Purchase Order for selected line items????????

    Hi,
    Try FM RV_DELIVERY_CREATE or GN_DELIVERY_CREATE.
    For creating a delivery wrt PO u 1st need to have a sales order i guess.
    Regards,
    Amit

  • Create Inbound Delivery with reference to Outbound Delivery

    Hi Team,
    Can anybody describe the process needed to be able to Create an Inbound Delivery with reference to an Outbound Delivery.
    Also, can the whole inbound delivery creation process be automated?
    Thanks.

    Inbound Delivery can be created wrt :
    Purchase order
    Shipping notification
    Customer return
    and
    Outbound Delivery can be created wrt:
    Goods shipment based on a sales order
    Stock transfer order
    Goods return (to the vendor)

  • Create inbound delivery with reference to purchase orders

    Hi,
    I´d like to create inbound deliveries using BAPI or transactions like vl10x (for outbound deliveries) for different purchase orders, items and quantities.
    Does anyone know the way to do it?
    Thank you in advance
    Best regards

    Hi,
    Is there only that transaction to create inbound deliveries??
    We want to do a load a file and create inbound deliveries. I was looking for bapi mass transactions, but I don´t know if the only way is to create a batch input of transaction VL31n.
    Thanks

  • Creation of Inbound Delivery with reference from PO

    Hi,
            I use this FM-BBP_INB_DELIVERY_CREATE for creation of inbound delivery.  Delivery date is  same  Actual GR date means it's working fine. But i give less than or greater than Actual GR date  means it shows following error,
              'Acknowledgment for PO item 10028 00010 contains date variance'
        Please tell me how to correct this error.Otherwise tell me correct FM/BAPI to create inbound delivery with reference from PO

    Hi Anjaneya,
                My business process is,(In MM side)
         I create one purchase order(me21n) mention Delivery Date is 24.08.2011 and Delivery Qty is 20 etc......And raise the po to vendor.
       In vendor side, check the po details and perform confirmation process i.e creation of inbound delivery using FM BBP_INB_DELIVERY_CREATE. I give the following  inputs,
            Import
              IS_INB_DELIVERY_HEADER -DELIV_DATE  = 26.08.2011
             Tables
             IT_INB_DELIVERY_DETAIL -MATERIAL = M1
             IT_INB_DELIVERY_DETAIL -DELIV_QTY  = 20
            IT_INB_DELIVERY_DETAIL-UNIT = EA
            IT_INB_DELIVERY_DETAIL-PO_NUMBER = 0000010028
             IT_INB_DELIVERY_DETAIL -PO_ITEM  = 00010
    If run this FM shows the following error
           '      Acknowledgment for PO item 0000010028 00010 contains date variance'
                    Please tell me how to correct this error.

  • Goods Receipt using Inbound Delivery with reference to Outbound Delivery

    Here is our scenario that we need help finding a solution:
    1.  Multiple Intracompany POs created
    2.  On the confirmations tab of the POs, we have u201CInbound Deliveryu201D Selected because the items need to be received in with Handling Unit management.
    3.  We have the Order Combination box checked on the shipping tab to allow 1 delivery to be created for multiple purchase orders.
    4.  We create only 1 Outbound Delivery for only available items on various purchase orders.
    5.  Due to being handling unit managed, we need to receive the items using an inbound delivery.
    Problem:  We need to find a solution to easily enter an outbound delivery number which will allow us to receive only the parts that were shipped (issued), via the inbound delivery process. 
    If we remove the confirmation control key, we can complete a Goods Receipt for Outbound Delivery in MIGO u2013 but is there a way to complete a goods receipt using an inbound delivery with reference to an Outbound Delivery?
    Thank you for the help.

    Hi,
    You can work with Inbound delivery created via IDOC Triggered from Outbound Delivery, this will carry the HU Data as well. Please refer this wonderful note, which will explain you a lot of things,  Note 1119073 - FAQ: Automatic inbound delivery creation for stock transfers
    There are other notes also available for Inbound delivery creation with HU in STO, please browse the notes, if you find any difficulty.
    Regards
    Chandra Shekhar

  • I faile to create outbound delivery with reference to scheduling agreement by using BAPI_OUTB_DELIVERY_CREATE_SLS.

    Dear Team,
    Can you please help me by providing the BAPI name for creating the outbound delivery for Scheduling Agreement in SAP SD .
    I faile to create outbound delivery with reference to scheduling agreement by using BAPI_OUTB_DELIVERY_CREATE_SLS.
    The system says "missing data in the BAPI interface: VBAK VBTYP E". It seems another FM should be used for scheduling agreement only.
    Thank you for your help in this regard .

    Hi Raghu.
    As much as I don't want to do this but just to resolve this error I created an enhancement implementation in include LV50R_CREACSV form routine dcs_check_so_vs_interface and modified VBTYP to blank to avoid that error message.
    Got the tip from this thread http://scn.sap.com/thread/1972059
    Unless... anybody has a brighter idea (without modifying the standards)?

  • Could we create an inbound delivery with reference to purchase requisition?

    Dear all,
    Could we create an inbound delivery with reference to purchase requisition?
    If yes, how could we customize the system?
    Kind regards,
    Adi

    No, I don't think so. You have to convert it into a PO and then you can create the delivery.

  • Creating inbound delivery without reference to PO - from inbound idoc

    Hi guys,
    I have a scenario wherein I need to create inbound delivery from inbound Idoc from external system without reference of PO. There is no PO created in SAP and this inbound delivery will be used just to receive material (purely for logistic purpose).
    I have identified DELVRY03 or 05 as Idoc type but I am not sure whether system will create inbound delivery without having reference PO. I have two questions here -
    1. Can we create inbound delivery without reference to PO?
    2. If yes, which Idoc type should I use to create such inbound delivery?
    Please help.
    Thanks,
    Parimal.

    Dear Parimal,
    In standard, An inbound delivery can be created as follows:
    With reference to a purchase order
    With collective processing for several purchase orders
    With reference to a stock transport order
    With reference to a customer return

  • Inbound delivery with reference to outbound delivery

    Guys,
    Is it possible to create inbound delivery in reference to a outbound delivery. Can it be created with GN_DELIVERY_CREATE,
    Regards
    Jiku

    Re: Create Inbound Delivery from Outbound Delivery create
    Re: Inbound/Outbound Delivery
    Reward points if it is useful...

  • Can we create inbound delivery with refernce to outbound delivery?

    Dear all,
    can we create inbound delivery with refernce to outbound delivery?
    Regards
    ahmad

    Dear Ahamed
    I beleive it is a stock movement between 2 different plants
    If so then the receiving plant will have to do GR against the outbound delivery only
    The outbound delivery of the supplying plant
    The  outbound delivery of the supplying plant will not become the inbound delivery of the receiving plant in SAP
    But logically yes
    Your second post talks about outbound delivery only and that is correct
    My point is your proces doesnot involve inbound delivery at all
    In STO there is no inbound delivery at all
    Inbound delivery in SAP means shipping notification that means the confirmation from the vendor about the despatches
    That will not have  muck material details and it is just a confirmation
    Meaning of inbound delivery from SCM 601 logistics execution
    The goods receipt process using inbound deliveries realistically maps standard
    processes in many companies. If the vendor announces the goods receipt with a
    shipping notification, the inbound delivery can be created either manually or
    automatically on the basis of the shipping notification. It contains information
    transmitted by the vendor concerning the expected delivery times and quantities,
    as well as any information about packaging. It is also the reference document for
    the subsequent putaway using a transfer order. If you also use the transportation
    function as part of Logistics Execution, you can summarize inbound deliveries
    into inbound shipments.
    Regards
    Raja

  • Function module create inbound delivery with text

    Hello
    I'm trying to create an inbound delivery with reference to a purchase order and create additional texts. I found FM GN_DELIVERY_CREATE but the texts are not added. I entered data in table IT_GN_TEXTL & IT_GN_TEXTH.
    What can be the problem?
    KR

    We will solve it with some extra development.
    As we do not have the parameter IS_BORGR_CONTROL-SAVE_TEXTS = 'X', I compared the version of ECC 6.0 to the 4.7. In debugging, we just have to pass one check and it will work. We will create a own version of gn_delivery_create with one extra parameter and put this parameter where it is added in Ecc 6.0.
    Check:
    if v50agl-create_decentral ne space
        or v50agl-create_uclief     = 'X'.
    KR

  • Can we create outbound delivery with reference of purchase order

    Hi All,
    can we create outbound delivery with reference of purchase order?

    dear friend,
    as far as i know you can create it with the following references:
    -to sales order;
    -to STO;
    -to subcontract order;
    -to project;
    -without any ref
    are you talking about stock transport order ?
    regards,

  • 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 to create Inbound Delivery without reference

    Hi Folks,
    I'm working for a client who requires a process to create Inbound Deliveries <i><b>without reference</b></i> to a PO. Does anyone know of an existing BAPI that will meet this criteria?
    The fallback position is to look at using a BAPI like BAPI_DELIVERYPROCESSING_EXEC or BAPI_OUTB_DELIVERY_SAVEREPLICA with a custom document type, but these are less than ideal options.
    Points rewarded for helpful answers.
    Cheers,
    Steve

    Hi!
    I can't seem to find a working example using this function modules. I want to create an inbound delivery without reference to a PO.
    Thanks!
    abapGenin

Maybe you are looking for

  • Take too much time to render the OAF page from JDeveloper

    Hi Gurus: It takes over 30 or 40 minutes to run a OAF page from JDeveloper, my JDeveloper is 10.1.3.3.0, and connect to the remote the DB server. I don't use the VPN. And one of my colleague in the same office take about 8 minutes to run a OAF page.

  • Validation on datepicker

    Hello expert i want to create validation on datepicker when we select the date.is it possible ? please help me for that Thanks & Regards Vilas maskey

  • Developer 6i connection to ODBC driver

    Hello All, i m trying to connect Oracle Developer 2000 6i to a MYSQL backend running on windows Server , the ODBC connection failed, but when i use SQL*PLUS 8 and Schema Builder ( come with Dev 2000 6i ) , it worked... Just dont know why FORMS cannot

  • I can't update iTunes without an upgrade of OS? Unable to connect iPhone 4??

    Okay, seriously. I have been having issues with my phone and I finally just got it to work again and I decided now would be a good time to back it up. However on plugging it in (I updated to iOS 7 yesterday) I was instructed that I needed to upgrade

  • How can I start local J2EE Engine in debug mode automatically?

    Hello, I thought there was a way to setup the local J2EE engine to automatically start in debug mode. Right now, I have to start the engine, go into Studio and right-click on engine and choose "Enable debugging of process". This means that I have to