Bapi to copy the PO line item below the existing PO line item

Hi All,
I am new to work on BAPI, Can any one help me out,
Requirement is to copy the PO line item below the existing PO line item (Replicate the line item for returns purpose) . So is there any bapi to do this task.
Thanks in Advance
Pallavi
Moderator Message: Please employ the SAP procedures to identify the right BADIs and Exits and help yourself.
Edited by: kishan P on Nov 16, 2010 1:56 PM

Hi,
What i think is you should use two BAPI one is BAPI_PO_GET_DETAIL to fetch existing details of line items and then BAPI_PO_CHANGE to create s second one.
Nabheet

Similar Messages

  • P.O Error in Process after copying the existing item in change mode

    Hi All,
    We are in SRM 5.0 Server 550 and SP15 and are using Extended Classic Scenario.
    We are facing a peculiar issue, when an already created P.O (Free text - goods) is changed and a new line item is added either manually or by copying the existing line item and then ordering it, the P.O is going into Error in Process status.
    This is happening only when i am adding a new item (material) to the existing line item (material) but when i am adding a service line item in the change mode to the existing material line item, the P.O is getting ordered without any issue.
    I believe this is SAP bug and raised with SAP for OSS.
    Meanwhile i would be grateful if you can provide any resolution to this issue and provide any OSS note number (If one already exists).
    Regards,
    Teja

    Hi Teja
    it works fine for me.
    old po template..
    taken describe procureemnt - goods
    copy the line item
    changed qty and price
    POs created for both items in one PO since vendors are same?
    what the error message says in the application monitor or rz20 / monitor sc.?
    for me i had a contract in my pld pos.(sc).
    muthu

  • FM to create equipment task group counter by copying the existing one.

    Hi Experts,
    I need FM to create equipment task group counter by copying the existing one.
    Manully we do this through the Tcode : IA01 but i want to do this through the Prog... for that i wrote one bdc it is creating some problem.
    Please let me know any FM avaliable IN 4.0B
    its very urgent please help me..
    Regards,
    Kali Pramod

    try this      /ISDFPS/TASKLIST_CREATE

  • How to create ISU Business partner from copying the existing ISU BP

    Hi,
    What is the BAPI used to create the new ISU BP from copying the data of the existing ISU BP? Please help.

    Hi Sreenivas,
    Can you please let me know the BAPI name or else the solution for the above.
    Thanks in Advance,
    Abhishek Ranjan.
    Edited by: abhishek ranjan on Oct 11, 2011 2:07 PM

  • Copy the Existing Emp Vendor Balances to New Emp Vendor Balance

    Dear all,
    I am stuck in a situation where in i need to copy the Balances of the Existing Empl Vendor to the New Emp Vendor.
    What i am looking for :
    Existing Emp No :- E0123
    Existing op Balance :- 125.00 rs
    I want to Transfer the Existing Emp Vendor to New Emp Vendor
    like New Emp Vendor : 4xxxx123
    Existing op Balance :- 125.00 rs
    How to achieve this ??
    Please help.
    with rgds
    Ranjith Singh

    Hi Ranjith,
    You can copy one vendor to another using the transaction XK01
    Regards
    Brinda

  • Copy the existing output rom Z program into a  spool file

    Hi all,
    There's a Zprogram if its run in foreground a list gets created .(as per req, i want this list in a spool file and not the below spool file)
    If this program is run in background a spool file gets created.
    I dont want the existing spool result instaed i want the other result which is generated via se38  as a spool file.
    Pls suggest.
    One more question is i don't see any code in program where the existing spool file is written.similarly i have checked another program earlier where i dont see the code where exactly spool file gets created ,moreover no sub programs in that too.
    Thanks for the help.

    Hi ,
    I don't want existing spool data.
    But i need the list in foreground run to be saved as the spool file.
    will commenting out  the statements which writes to current spool file(yet to identify this part of the code) be a good option
    Or,
    If i can create another spool file ,how to do it.
    basically how to create 2 spool file in the same program,1 spool is already getting created..
    Thanks,

  • Creating new Domain by Copying the existing domain

    Hi,
    Is there any way to create a new domain by copying the already existing domain directory and pasting it to another directory in same machine or different machine.
    Can anyone suggest me the configuration file that needs to be updated for new domain name.
    Thanks
    Harish
    Edited by: user10833531 on Dec 2, 2009 7:52 AM

    When you mention "Before posting on forum I have tried this option. I tried again but no luck." do you mean you tried pack/unpack or template approach and this did not work. Or did you just copied domain folder and renamed and start the new domain and you got errors. Copying domain may not work 100% (not in the long run). But pack/unpack or template approach should work pretty much without any errors.
    As mentioned, I would recommend template approach or pack/unpack. You can provide the internal details and risk factors involved with hard disk copy of domain folder and renaming approach to the client. If domain copy approach works, then bea/oracle would not have come up with approaches like pack/unpack or template approach at all in the very first place. Copying domain folder and renaming may still work, unless you do all regression testing that includes cluster scenario also and all usecases.
    I would still recommend for pack/unpack or template approach to copy any existing domains.
    Just incase if your domain is like Portal Domain and if you deploy portal applications on this domain, then copying domain will just not work. Every domain is very tightly coupled with ldap files and db tables for any Security Visitor Entitlements and Delegated Admin roles. If its pure weblogic server application, these things will not come into picture. But for Portal, we do have something called Propagation Tool to migrate portal app from one domain to other domain. But still the domain cannot be copied and renamed.
    HTH
    Ravi Jegga

  • New client creation & copying the existing client data

    Hi,
    could anybody answer this?
    I need to create new client 810 and copy the data from the existing client 800 in ides.How can I do this.
    Regards
    Sai

    Hi,
    By using transaction code SO01 we can solve the queary.

  • BAPI to copy the FI reverse documents and post the actual documents

    Hi,
      We are facing a issue where I need to copy a FI (FB03 ) reversal document and do the actual posting document.
    Regards,
    Ankit Gupta

    Hi MUkesh,
    If you would like to delete multiple documents then it is not possible.  Check OSS note 849742.
    Please find the Note details below.
    Summary
    Symptom
    You want to delete several physical inventory documents, but this involves too much manual work, as the documents must be deleted individually in MI02.
    Other terms
    MI02, delete physical inventory documents, SHDB, recording
    Reason and Prerequisites
    In the standard version, you can only delete inventory documents individually using Transaction MI02. A mass transaction or BAPI currently does not exist, and none is currently planned.
    Solution
    You can use standard functions to create a program that can delete several physical inventory documents at once. To do this:
    1. In Transaction SHDB, create a new recording using MI02.
    2. Also in SHDB, create a function module from the recording.
    3. Create a program based on this function module. Define the selection screen based on your needs. You can also create your own transaction for the program, if necessary.
    And I see the only way to delete the documents as per my knowledge is just MI02
    Edited by: Raj on Jul 30, 2010 5:01 PM

  • Can we copy the already created Configuration Item in ATO Model

    Hi all,
    We have the requirement for copy the Existing configurator ATO items into new model. i.e. Customer will congifured the model in istore process flow to create a sale order. After that for second sales order customer don't want to make same configuration so added interface for copying the existing configuration. In this process we are facing following issue.
    Steps we are followed for copying the existing ATO models:
    =>First we find the existing configuration's for already created ato model.
    =>Then we copied the existing model configuration into new configuration using cz_cfg_api.copy_configuration API.
    =>After that we are passing new configuration detail, model line details and sub item detail into ASO_QUOTE_LINES_PVT.Insert_Quote_Line_Rows API.
    =>This API's will made the appropriate entry in 'ASO_QUOTE_LINES_ALL' and 'ASO_QUOTE_LINE_DETAILS', line_relation tables.
    After the all process when we looking into the cart page the model and model sub-items are created as separate lines.
    It was not converted as ATO model.
    Please help.

    Hi,
    We solved this issue by using custom API process, also we used ASO oracle packages.
    Thanks,
    LSP

  • Error while copying the concurrent program

    Hi Experts,
    I am working on EBS 11i and database 9i. When i am trying to copy the existing concurrent program,it's giving below error.
    Error: Please enter a unique segment name, the segment name is already defined for other segment.
    Could you somebody help me to get rid off this error.
    Thanks.

    While copying the concurrent program, what is the short name and name for the new concurrent program?
    Hope you are not giving the same name as the old CP.
    By
    Vamsi

  • Dump while copying the entries in view cluster

    Hi Experts,
    I am having a scenario where i am getting the dump while copying the entries through the vies cluster.
    I have 2 tables CU00 and CU01. CU01 is depended on CU00.
    CU00- it is having schema which are defined by the user.(SCHEMA-P,DESC)
    CU01- this table is having the different tabs in a tab strip for a each of the user defined schema.(SCHEMA-P,SEQNO-P,TABID)
    the data will be as follows
    In CU00
              SCHEMA1         first schema
              SCHEMA2         second schema
    In CU01
              SCHEMA1         01              TAB1
              SCHEMA1         02              TAB2
              SCHEMA2         01              TAB2
              SCHEMA2         02              TAB3
    I maintained above 2 tables in a view cluster by making  CU00 is the start point and defined the field dependencies as well.
    in the T-code SE54 i tried to copy the existing schema and all its dependencies(means all the dependent entries in the CU01 table also).
    when i pressed the SAVE  button it is going for the dump by saying due to duplicate entries in the table CU01.
    but it should check the consistency and display the error message when i pressed the COPY key.
    I am badly struck up here. Please help me on this issue.
    thanks in advance.

    Hi Gouri,
    CU01 and CU00 both are dictionary tables.
    What I think is, while copying all the dependencies for a particular schema the system ha to check whether the data can be inserted into the child tables or not. I too dont know whether this can be done or not.
    If not, it should display an error message stating that " primary key violation occurs please use different key values..."
    thanks for the reply.

  • Error while copying the Root Organization Unit.

    Hi Experts,
    Can any one help me in copying the existing Orgnaization structure root in SRM , Because I have requirement like need to create a separate root with independent node under the Old one. so when try to copy the Org structure root node and click copy system give me a message like.
    " Before you select a function , select suitable entries in the structure."
    Can any one help on this copying of the Organization root.
    Regards
    Srujank.

    This is solved

  • BAPI for copying an Accounting Document

    Hi,
    I have to copy an existing accounting document and create a New Accounting document.
    For creating i will use BAPI_ACC_DOCUMENT_POST.
    If there is a function module for this, please suggest.
    Please let me know how to copy the existing accntg document??
    Regards,
    Saurabh

    Hi Sourabh,
    try passing obj_key with your source document number in
    BAPI_ACC_DOCUMENT_POST.
    I am not sure whether that will work or not.
    The round about way will be select the document details FI tables and pass it BAPI_ACC_DOCUMENT_POST.
    Hope this helps you.
    Thanks,
    Arun

  • Cretaing a new adapter using the existing file adapter

    Hi,
    Is it possible to create a new adapter type copying the existing file adapter. That is I want to create a new adapter type for example "FNFS" and use the same module callsapadapter which is used in the File adapter. So that this new adapter type "FNFS" functions like the File adapter,
    What are the actions I need to perform to acheive this.
    Thanks in advance.

    what will be the significance of that?
    I think if you need some extra functionality then Development of Custom Module is enough.
    /people/john.ta2/blog/2006/12/20/to-create-or-not-to-create-an-sap-xi-adapter
    Thanks
    farooq.

Maybe you are looking for

  • 21" iMac G4 running slower and s l o w e r....

    This machine is running increasingly slowly, regardless of which applications are or aren't running. I'm continually seeing the spinning beachball, and it feels like there is some incredibly cycle-consuming thing going on in the background but I can'

  • Programatically change automatic update settings

    Is there a way to remotely modify the automatic update settings for a corporate-wide deployment of Adobe Reader? We currently push updates from management software, but have some workstations that attempt to automatically install updates. It presents

  • Failed attempts to install 10.5.8 - a fix?

    Just tonight, I downloaded and attempted to install the new system update, 10.5.8. However, when install was about half way done with the progress bar, the install just stopped. It froze for nearly half an hour. Fearing a crash was imminent, I force-

  • I have an iPod nano 3rd generation and it won't turn on, I plug it into it's charger and it won't turn on, please help!!

    my ipod won't turn on! i've had it for a while , i just haven't come to use it for the past couple of years. i've tried charging it but it won't turn on. i don't know how to fix it. helpppp! please!

  • Time Dependent InfoObject and InfoPackages

    Hi There, I did create a time-dependent infoobject ( bI7 object) however the timeframe in the infopackage does not show-up meaning I can not restrict the load _ unless I define the dateto and datefrom as selection when I create the datasource in R/3