Receiving multiple lines on a PO with a single receipt

Hi,
Unable to create a receipt with multiple PO lines against it.
Here is the scenario:
PO# 1000
Line1: 1000 (Non-inventory)
Line 2:2000 ((Non-inventory)
Whie trying to create a receipt with both PO lines against it (Receipt R1: Line1 500, ine2:1000),
I get the following message: "An error occurred while trying to split lot and serial lines."
Can anyone please post the insert statements with the columns that need to be populated.
I'm able to create a receipt against a single PO line.
Thanks.

Below is the script that I'm using........
I'm able to create a receipt against a single line in a PO but when I try to receive multiple lines (use the 2nd and 3rd inserts again but change the po_line_id and quantity) it does not work.
insert into rcv_headers_interface(header_interface_id,
group_id,
processing_status_code,
receipt_source_code,
transaction_type,
auto_transact_code,
last_update_date,
last_updated_by,
last_update_login,
creation_date,
created_by,
vendor_id,
vendor_site_id,
ship_to_organization_id,
expected_receipt_date,
employee_id,
validation_flag)
values
(rcv_shipment_headers_s.nextval,
RCV_INTERFACE_GROUPS_S.Nextval,
'PENDING',
'VENDOR',
'NEW',
'DELIVER',
sysdate,
8938,
8938,
sysdate,
8938,
276747,
322205,
189,
sysdate,
2860,
'Y');
INSERT INTO rcv_transactions_interface
(interface_transaction_id,GROUP_ID,
last_update_date,last_updated_by,
creation_date,created_by,last_update_login,
transaction_type,transaction_date,
processing_status_code,processing_mode_code,
transaction_status_code,
quantity,unit_of_measure,
auto_transact_code,receipt_source_code,
vendor_id,vendor_site_id,
source_document_code,
po_header_id,po_line_id,
destination_type_code,
--deliver_to_location_id,
header_interface_id,validation_flag,
to_organization_id
VALUES (rcv_transactions_s.nextval,RCV_INTERFACE_GROUPS_S.currval,
sysdate,8938,
sysdate,8938,8938,
'RECEIVE', SYSDATE,
'PENDING', 'BATCH',
'PENDING',
5,'Each',
'RECEIVE','VENDOR',
276747,322205,
'PO',
100249,136970, --Both values to be changed
'RECEIVING',
--32387,
rcv_shipment_headers_s.currval,'Y',
189);
insert into rcv_transactions_interface(interface_transaction_id,
group_id,
last_update_date,last_updated_by,
creation_date,created_by,
transaction_type,transaction_date,
processing_status_code,processing_mode_code,
transaction_status_code,po_line_id,
receipt_source_code,source_document_code,
validation_flag,quantity,
unit_of_measure,
po_header_id,vendor_id,vendor_site_id,
employee_id,ship_to_location_id,to_organization_id,
destination_type_code,
--deliver_to_person_id,
deliver_to_location_id,
parent_interface_txn_id,
subinventory)
values
(rcv_transactions_s.nextval,RCV_INTERFACE_GROUPS_S.currval,
sysdate,8938,
sysdate,8938,
'DELIVER',sysdate,
'PENDING','BATCH',
'PENDING',136970,
'VENDOR','PO',
'Y',5,
'Each',
100249,276747,322205, --po_header_id  and po_line_id needs to be changed
2860,9289931,189,
'INVENTORY',
--2860,
9289931,
rcv_transactions_s.currval-1,
'BCU_SINV');
Please tell me where I'm going wrong or if there is a script that I can use.
Thanks.

Similar Messages

  • Sharepoint 2010 - Multiple line of text column with Plain text type

    Hi All,
    I have list where multiple lines of text with plain type column is used. When I start entering information in multiline text box in new form, I faced following problem,
    I typed enough information so that scroll bar is visible. When I stopped typing information, scrollbar automatically scrolled up and last few lines are not visible. But when I started typing again, my cursor is automatically placed at the end text and now I
    am able to see last lines.
    This issue occurs in IE8 version and not in other versions. Can anybody help me to resolve this issue or tell me this is bug in IE8?

    Try press ctr F5 and refresh the page to load it properly, also check in browser compatibility mode
    Mark ANSWER if this reply resolves your query, If helpful then VOTE HELPFUL
    INSQLSERVER.COM
    Mohammad Nizamuddin

  • Error trying to use multiple lines from a PO in a Goods Receipt PO

    I get the following error when I try to add 2 lines from a PO to a single Goods Receipt PO (code below):
    -5002 One of the base documents has already been closed  [PDN1.BaseEntry][line: 1]
    I can create the Goods Receipt PO if I use 1 line or lines from multiple PO's???
                   SAPbobsCOM.Documents poReceipt2 = (SAPbobsCOM.Documents)_diApi.SboCompany.GetBusinessObject(BoObjectTypes.oPurchaseDeliveryNotes);
                   poReceipt2.CardCode = "ALL";
                   poReceipt2.DocDueDate = DateTime.Now;
                   poReceipt2.Lines.Quantity = 5;
                   poReceipt2.Lines.ItemCode = "HAMSHA";
                   poReceipt2.Lines.BaseEntry = 11;
                   poReceipt2.Lines.BaseLine = 0;
                   poReceipt2.Lines.BaseType = 22;
                   poReceipt2.Lines.Add();
                   poReceipt2.Lines.Quantity = 5;
                   poReceipt2.Lines.ItemCode = "LAMFIL";
                   poReceipt2.Lines.BaseEntry = 11;
                   poReceipt2.Lines.BaseLine = 1;
                   poReceipt2.Lines.BaseType = 22;
                   poReceipt2.Add();
    Any help is appreciated!
    Thanks,
    Daniel

    Hi Louis, thanks for the post...
    However the PO document that I am refercing definately has both lines open, if I use 1 of those lines it works fine, but the error occurs if I use 2 lines from the same PO.  I am also definately using the docentry not the docnum for the GetByKey() method.
    Can anyone run the same basic logic through the DI API?  That is create a PO with 2 lines on it, then run the code as above to make a Goods Receipt PO and reference the 2 lines from the 1 PO document?  (It works if I add multiple lines referncing lines from multiple PO docs??)
    Thanks,
    Dan
    Message was edited by: Daniel Archer

  • Convert multiple lines for same material into a single line in Sales Order

    Our company has a requirement, they want if there are multiple lines exist for the same material in sales order and purchase order then it should become like one single line.
    10    35712  5pcs
    20   100885  10 pcs
    30   35712   10pcs
    Now our requirement is that should  become a single line like this
    10  35712  15pcs.
    I will   Text Removed.
    Regards,
    Khawar
    Message was edited by: G Lakshmipathi
    Please dont add such text in your post

    Now our requirement is that should  become a single line like this
    Where?  Meanwhile, I hope, you would have searched in SCN / Google before posting as it is a basic question and needs to be locked.  If searched, specify clearly what efforts you took to find out solution to your requirement.
    G. Lakshmipathi

  • Multiple line items while clearing with f-44  abd f-32

    Hello Team,
    While clearing a vendor in f-44 or customer in f-32 system showing the double line items for bank account
    in F-44
    Vendor account  DR 5000
             to Bank account 4000(2000+2000)
             to bank account 1000
    in the above synario we have a open items  6000 (200020002000) but we are paying 5000 through check, system is showing bank account two line items instead of one line item.
    it should  show only one line item.
    Would you please help me how to solve the issue
    Regards,
    Anantha.

    Hello Ray,
    I am very happy that some have taken tthe responsilibility of answering my query.
    When i do the F-54, I am able to clear the vendor invoice against with the down payment. But if i go and see the WHT in respective GL account, they are still showing as " Open".
    Please help me how to resolve it.
    If this is not the correct way, kindly suggest me the right way.
    Thanks for all your help
    Regards,
    Narasim

  • Decrypt multiple dm-crypt LUKS drives with a single password on start

    Hi there,
    This is a hook based on the encrypt hook that I use to decrypt multiple dm-crypt LUKS drives on startup for a btrfs raid 1. I thought someone might find it useful. I'd be willing to do some work to include this in the official mkinitcpio package if the developers are happy with it ? Constructive suggestions are welcome
    Credit goes to the following:
    https://bbs.archlinux.org/viewtopic.php?id=120243
    https://wiki.gentoo.org/wiki/Custom_Initramfs/Examples
    https://wiki.archlinux.org/index.php/Dm … iple_disks
    The author(s) of the mkinitcpio hooks on which this hook is based
    Edit: Thanks to frostschutz for pointing out that --keyfile-size and --keyfile-offset use bytes instead of bits. Therefore to use 4096 bit keys, 512 bytes should be specified. I have corrected the examples.
    The idea is to have a dm-crypt LUKS password encrypted file /boot/multikeyfile. This file contains multiple 4096 bit keys to be used to decrypt the actual drives.
    I created the file and encrypted volumes as follows:
    $ dd if=/dev/zero of=multikeyfile bs=3M count=1 # I chose 3M because the LUKS header is around 2M
    $ cryptsetup -v --cipher aes-xts-plain64 --key-size 512 --hash sha512 --iter-time 5000 --use-random luksFormat multikeyfile
    # install -m644 -o root -g root multikeyfile /boot
    # cryptsetup open --type luks /boot/multikeyfile multikeyfile
    # dd if=/dev/zero of=/dev/mapper/multikeyfile
    # I wanted keys for two drives (2 * 4096 / 8) = 1024 bytes
    # dd iflag=fullblock if=/dev/random of=/dev/mapper/multikeyfile bs=1024 count=1
    # Verify enough random content
    # hexdump -C /dev/mapper/multikeyfile | less
    # Create the containers
    # cryptsetup --cipher aes-xts-plain64 --key-size 512 --hash sha512 --iter-time 5000 --use-random --key-file /dev/mapper/multikeyfile --keyfile-offset 0 --keyfile-size 512 luksFormat /dev/sdXY
    # cryptsetup --cipher aes-xts-plain64 --key-size 512 --hash sha512 --iter-time 5000 --use-random --key-file /dev/mapper/multikeyfile --keyfile-offset 512 --keyfile-size 512 luksFormat /dev/sdAB
    Next add a kernel parameter to identify the drives in the same sequence as their keys appear in the multikeyfile. I used PARTUUID:
    multidecrypt=PARTUUID=<drive1>:PARTUUID=<drive2>
    In /etc/mkinitcpio.conf add the multidecrypt hook in the HOOKS field in the same place you would normally place the encrypt hook.
    Run mkinitcpio as you normally do to recreate your initramfs.
    Here are the actual hook files:
    /etc/initcpio/hooks/multidecrypt
    #!/usr/bin/ash
    run_hook() {
    modprobe -a -q dm-crypt >/dev/null 2>&1
    modprobe -a -q loop >/dev/null 2>&1
    [ "${quiet}" = "y" ] && CSQUIET=">/dev/null"
    if [ -z "${multidecrypt}" ]; then
    err "No dm-crypt luks devices specified for multidecrypt, aborting..."
    exit 1
    fi
    echo ""
    echo "YOU SHALL NOT PASS !!!!!!!"
    #loop until we get a real password
    while ! eval cryptsetup open --type luks /multikeyfile multikeyfile ${CSQUIET}; do
    sleep 2;
    done
    if [ ! -e "/dev/mapper/multikeyfile" ]; then
    err "multikeyfile decryption failed, aborting..."
    exit 1
    fi
    luksdevnum=1
    for luksdev in ${multidecrypt//:/ }; do
    if resolved=$(resolve_device "${luksdev}" ${rootdelay}); then
    eval cryptsetup open --type luks --key-file /dev/mapper/multikeyfile --keyfile-offset $((($luksdevnum-1)*512)) --keyfile-size 512 ${resolved} container${luksdevnum} ${CSQUIET}
    if [ ! -e "/dev/mapper/container${luksdevnum}" ]; then
    err "container${luksdevnum} creation failed, continuing with other specified devices..."
    fi
    else
    err "Could not resolve ${luksdev}, continuing with other specified devices..."
    fi
    let luksdevnum++
    done
    #clean up
    cryptsetup close multikeyfile
    # vim: set ft=sh ts=4 sw=4 et:
    /etc/initcpio/install/multidecrypt
    #!/bin/bash
    build() {
    local mod
    add_module dm-crypt
    if [[ $CRYPTO_MODULES ]]; then
    for mod in $CRYPTO_MODULES; do
    add_module "$mod"
    done
    else
    add_all_modules '/crypto/'
    fi
    # add loop module for mounting of keyfile
    add_module loop
    add_binary "cryptsetup"
    add_binary "dmsetup"
    add_file "/usr/lib/udev/rules.d/10-dm.rules"
    add_file "/usr/lib/udev/rules.d/13-dm-disk.rules"
    add_file "/usr/lib/udev/rules.d/95-dm-notify.rules"
    add_file "/usr/lib/initcpio/udev/11-dm-initramfs.rules" "/usr/lib/udev/rules.d/11-dm-initramfs.rules"
    add_file "/boot/multikeyfile" "/multikeyfile"
    add_runscript
    help() {
    cat <<HELPEOF
    This hook allows for startup decryption of multiple dm-crypt luks encrypted
    devices. Users should specify the devices to be unlocked using:
    'multidecrypt=device[[:device]...]'
    on the kernel command line, where 'device' is the path to the raw device,
    specified using PARTUUID or some other means. Devices will be available as
    /dev/mapper/container[1,2,3...] etc.
    The hook expects a dm-crypt luks encrypted file called /boot/multikeyfile to
    exist. This keyfile contains a concatenation of 4096 bit keys for each
    encrypted device in the same order as specified in the multidecrypt kernel
    command line argument.
    If decryption of one of the devices fails, the hook will attempt to continue
    to decrypt any other specified devices. This is useful for btrfs software
    raid if a device has failed as an example.
    You will be prompted for the password to the multikeyfile container at runtime.
    This means you must have a keyboard available to input it, and you may need the
    keymap hook as well to ensure that the keyboard is using the layout you expect.
    HELPEOF
    # vim: set ft=sh ts=4 sw=4 et:
    Last edited by dude42 (2015-06-06 04:08:06)

    frostschutz wrote:
    --keyfile-size is not bits but bytes.
    If you really set up your encryption the way you described, the key for your first container will be 1024 random bytes followed by zero bytes, and the key of your second container will be 4096 bytes of /dev/zero.
    Thanks frostschutz !

  • Multiple O365 tenants syncing passwords with a single on-prem AD server

    Guys,Been trying to work my way round of this, but am kind of stuck right now.Scenario:We have serveral different customers using the same software, and want to host this software for them all.
    Each customer have their own O365 tenant with their associated domain, eg. domain.com, example.com, etc.
    Each customer was supposed to login to an RD server (thus the AD), and use same password for O365.For this to work, the users need to logon to the AD with a generic user account, eg. Genericdomain\user, and have each single user mapped to their specific O365 tenant user.
    We've been looking to isolate each customer so they cannot see users from other customers, however regarding address book policies and segmentation of these, this is only possible with hosted or on-prem exchange AFAIK.So, what we essentially are looking for is a way to have...
    This topic first appeared in the Spiceworks Community

    I have not seen this on here yet....http://dailycaller.com/2015/07/29/top-feminist-issues-stunning-rebuke-for-medias-total-silence-on-pl...http://www.salon.com/2015/07/29/camille_paglia_takes_on_jon_stewart_trump_sanders_liberals_think_of_...fta: A major feminist author and former Planned Parenthood member shredded the U.S. media Wednesday for its “shockingly unprofessional” failure to cover the release of secret videos showing alleged trafficking in fetal organs by employees of Planned Parenthood. ... .. Now let me give you a recent example of the persisting insularity of liberal thought in the media. When the first secret Planned Parenthood video was released in mid-July, anyone who looks only at liberal media was kept totally in the dark about it, even after the second video was released.also fta: I regard Donald Trump as an art...

  • How do I allow a user to enter multiple lines of text within a Text Entry Box?

    I need a text entry box that allows for multiple lines to be inputted with in a Text Entry Box.  How can I make this possible?

    Go to the Options accordion and check 'Show scrollbar'.
    Lilybiri

  • Consolidating multiple lines in a requisition into one line item on a PO

    I am using project builder in sap, one requisition is creating for all activities on the project. The requisition of cable is spread over multiple activities. ie activity 1 may have 200m of cable (req item 10), activity 2 may have 400m of cable (req item 20). When the purchase order is created I would line line 10 and 20 consolidated on the PO so there is 1 line for 600m of cable.  How is this possible.

    You can consodilate Purchase requisitions lines into one PO. When you create PO just input Purchase requisition no along with line item and qty in PO item detail for PO first line item. It will close multiple lines in Pr's with one PO line item.
    First create PO referring PR and then in PO item detail you can see purchase requisition and line item there you input second pr with line item and qty.

  • Trying to create multiple lines of radio buttons on the same page. how do i do that??

    Greetings. I'm brand new to this, and am trying to create a form with multiple lines of radio buttons on a single page to send to my students.  How can I do this??  I currently have a table that I want the students to fill out and return, but every time I put radio buttons in, the form only allows selection of one of the 12 - I want students to be able to select one on each row.........

    Each group of three radio buttons for a row should have the same field name and different "Radio Button Choice" (see Options tab). So if you copy & paste the first row, be sure to rename the new ly added radio buttons.

  • Auto PO for multiple line items

    Hi All,
    I ma creating PO with refernce to PR with T.code ME59 but my problem is to create PO with PR for multiple items,
    Ex: I have PR with 4 line items now i want to create PO only for 1&4 line items,
    please let me know if it is possible or if possible please let me know the process,
    Thanks&regards,
    Chand

    Hello Chand,
    Yes , it can be possible to convert the multiple line items in purchase frequistion into single purchase order, if and only if the Fixed vendor which is determined in purchase requistion line item level is same. In PR you can have material with differnt fixed vendor.
    Yes, you can use ME59N for PR TO PO conversion, if and only if when source vendor is already dyermined in your PR.
    Two Examples say PR contains 4 line items belonging to same vendor;
    Go to ME59N >> Now enter the PR number in the filed and execute. All the line items in PR will be converted to single PO
    Now say out of 4 line items 2 belong to Vendor A and remaining two belong to Vendor B
    Go to ME59N>> Enter Vendor as VENDOR A in Fxied vendor filed and enter PR number in PR number filed and execute.
    Likely follow this step for vendor B whcih will send remaining two line items
    BR,
    Tushar

  • One order with multiple lines in OM is creating multiple invoices

    Application: Oracle 11i (11.5.3)
    Modules implemented: GL, OM, AR, AP, PO and CM
    Business Requirement:
    Our client would like to create Order consisting of multiple lines in Order Management.
    The Orders created in OM with multiple lines could be booked, picked, released and transferred
    over to Accounts Receivable. On transferring over the Orders from Order Management to Accounts
    Receivables using Auto Invoice process the Order should create ONE invoice with multiple lines.
    Moreover, for the multiple lines created on an invoice deferred revenue could be applied.
    ( eg. An order is placed for software and support. The support is to be invoiced all at once but revenue deferred to 1/12
    recognized each month as revenue is earned.)
    Right now we are getting two invoices. It is putting the deferred revenue item on a seperate invoice. Is this normal
    functionality? How can I get both on one invoice.
    thanks

    Hello Monique,
    Well you can have one invoice generated for an order with multiple lines. This is possible by changing some rules in Account Receivables. Use the grouping rules under setups->autoinvoice in AR. You can club your invoices based on any of the columns of ra_interface_lines_all. Hope this works for you.
    Arvind

  • How can I allow the application to line through a field that has been locked after being digitally signed?  We have multiple sections on a form with some fields being proposed information and other in another section having the approved information. once

    How can I allow the application to line through a field that has been locked after being digitally signed?
    We have multiple sections on a form with some fields being proposed information and other in another section having the approved information. once the approved information is entered we line through the proposed field so the data entry clerk won't pick up the wrong information.  However we are receiving an error when attempting to enter data  in the field which we have this edit.  Error property: line through cannot be set because doing so would violate the document permission setting.  any idea how we can get around this issue?

    You can control which fields are locked down after signing by setting up a collection. Then those that are not locked can be changed after signing. If this is not possible, then the line outs must occur prior to signing.

  • How to Restrict Single Delivery Date for PO with Multiple Line Items

    Dear Experts,
    How to Restrict Single Delivery Date for PO with Multiple Line Items.
    System needs to through Error Message if User Inputs Different Delivery Dates for PO with Multiple Line Items in ME21N Tcode.
    Can we achive this by Some Enhancement in SAP or Not ???
    If so how to do it.
    Any Inputs is highly appreciated.
    Thanks and Regards,
    Selvakumar. M

    Hi Selvakumar,
    we can resrict the PO to have a single delivery date in all the line items by means of giving a error message or overwiting the delivery date keyed/determined in the line item.
    You can use the BADI -> ME_PROCESS_PO_CUST. In which you need to implement the method PROCESS_SCHEDULE.
    (for technical aid - This method will be called for each and every PO line item, From the imporing parameter im_schedule we can get all the details of current PO line, even we can change the data in the current PO line. )
    Regards,
    Madhu.

  • Error Message with multiple line

    Hi
    How to display a error message with multiple line?
    Example
         Goods movement not possible for material 101
         Goods movement not possible for material 102
         Goods movement not possible for material 103
    is it possible is ABAP? If so please advice me.
    Best Regards
    Asheek

    Hi Anoop,
    You can use same thing like this
    I suggest write ur message through this.
    First set the obecj.
    CALL FUNCTION 'APPL_LOG_SET_OBJECT'
    for local memory
    FUNCTION 'APPL_LOG_WRITE_MESSAGES'
             EXPORTING
                  OBJECT              = OBJECT
                  SUBOBJECT           = SUBOBJECT
                  UPDATE_OR_INSERT    = UPDATE_INSERT_FLAG
             TABLES
                  MESSAGES            = MESSAGE_TABLE
             EXCEPTIONS
                  OBJECT_NOT_FOUND    = 1
                  SUBOBJECT_NOT_FOUND = 2
                  OTHERS              = 3.
    the call for physical memory
    CALL FUNCTION 'APPL_LOG_WRITE_DB'
    In this process you only need to provide the Itab with error messages.
    Reg,
    Arpit

Maybe you are looking for

  • How can I display not only one account's mail but all in the central inbox?

    I am changing from OSX (machines with OSX 1.8.5 and Mavericks) mail to Thunderbird. However, one feature of OSX Mail I can't find in Thunderbird or have overseen it: I use several mail accounts, that OSX Mail is showing me on top level in one general

  • ITunes 11.1.4 will not download after complete uninstall. Why?

    After downloading and trying to install 11.1.4 for Windows (32-bit) on 1/23/14, I got that common error message. After research, followed all instructions in KB HT1923 to do a complete uninstall of iTunes and related components, and checked / restart

  • JBO-25003 View Object Not Found

    Hi, I am facing a very strange issue. I have a VO defined in my application. I have 2 projects in my application. When i drag and drop one of the fields from this VO on to the pages in these projects, i dont see any issue in one of the projects. Howe

  • Selecting OS language for multi-lingual systems

    Hi, I just got a T400 yesterday, which was supposed to include a multi-lingual version of XP (English/Swedish/Finnish). However, I never got the choice at startup to choose language, and it defaulted to swedish. I have already tried to restore the sy

  • Build a message driven (HL7) real time data warehousing

    How far is practical to build a message driven (HL7) real time datawarehouse on a EAI,which can be used for BI , considering the issues of data cleansing, integrity that are relevent in Healthcare instead of a traditional datawarehouse ?