Trying to add multiple ship to parties using BAPI_BUPR_PFCT_CREATEFROMDATA

Hi all,
I am trying to add relation ship to a business partner. I have two business partners BP1 and BP2. I need to assign BP2 as u201CShip to Partyu201D for BP1. I was able to do this using BAPI_BUPR_PFCT_CREATEFROMDATA.
But my actual requirement is to add more than one business partner as u201CShip to partyu201D to BP1 in my ZFunction Module in one instance itself.
BAPI_BUPR_PFCT_CREATEFROMDATA. Will take input as Business partners and assigns BP2 as Ship to party to BP1.
But my requirement is I have to assign more than one business partners as Ship to parties for this BP1.
But BAPI_BUPR_PFCT_CREATEFROMDATA accepts only a single business partner at a time. So I created a Z function Module and declared a tables paramters which accepts any number  of Businesss partner. I also declared an import paramter to accept the business parter number for which all the business partners in table should be assigned as Ship to parties.
I tried passing the values from this table to the BAPI but it shows me a waring message saying
u201CAfter Enhancement you may not be able to convert the structure WA_SOLDu201D into a number and it would no longer be a valid operandu201D
If I execute the Zfunction Module it is not assigning the business partners from the input table as ship to parties to the business partner(import paramters).
Please help me...how can i assign multiple ship to parties for a business partner at one instance iteslf using BAPI_BUPR_PFCT_CREATEFROMDATA...
here is how i desgined my Zfunction Module...........
Impot paramters = CUST_NO) TYPE  BU_NAMEP_F
Tables paramters = I_SOLD like  ZSOLD_TO OPTIONAL
My structure Zsold_to has follwing componenet
BP type BU_NAMEP_F
Here is my codeu2026u2026..
FUNCTION Z_FUNCTION.
""Local Interface:
*"  IMPORTING
*"     VALUE(CUST_NO) TYPE  BU_NAMEP_F
*"  TABLES
*"      I_SOLD STRUCTURE  ZSOLD_TO OPTIONAL
*"      IT_RETURN1 STRUCTURE  BAPIRET2 OPTIONAL
*"      IT_RETURN2 STRUCTURE  BAPIRET2 OPTIONAL
DATA: WA_SOLD TYPE ZSOLD_TO.
LOOP AT I_SOLD TO WA_SOLD.
*Call the BAPI BAPI_BUPR_PFCT_CREATEFROMDATA.
CALL FUNCTION 'BAPI_BUPR_PFCT_CREATEFROMDATA'
  EXPORTING
    BUSINESSPARTNER1           =  CUST_NO
    BUSINESSPARTNER2           =  WA_SOLD-BP
    RELATIONSHIPCATEGORY       =  'CRMH02'
TABLES
    RETURN                     =  it_RETURN1.
*Call Commit Work
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
  EXPORTING
    WAIT          =   'X'
IMPORTING
    RETURN        =  it_RETURN2.
ENDLOOP.
ENDFUNCTION.
Please help me...how can i assign multiple ship to parties for a business partner at one instance iteslf using BAPI_BUPR_PFCT_CREATEFROMDATA...
Regards,
Jessica Sam
Edited by: jessica sam on Jan 19, 2009 1:57 AM
Edited by: jessica sam on Jan 19, 2009 2:09 PM

Hi,
I am facing the same issue I have created the Target Group and then assigned the BP to target group using BAPI 
  BAPI_TARGETGROUP_ADD_BP . Called BAPI 
  BAPI_TRANSACTION_COMMIT after this. Table  CRMD_MKTTG_TG_I is getting updated with BP guid but its not showing in WEB UI screen.
Please help me.
Thanks and Regards,
Ranadev

Similar Messages

  • I am getting a error IO when trying to upload multiple images within wordpress using the flash uploader. I do not get the error when uploading using explorer. The error only appears if I try uploading using firefox....any ideas?

    I am getting a error IO when trying to upload multiple images within wordpress using the flash uploader. I do not get the error when uploading using explorer. The error only appears if I try uploading using firefox....any ideas?

    Logged the call with SAP who directed me to 'Define settings for attachments' in IMG and setting the 'Deactivate Java Applet' & 'Deactivate Attachment versioning' checkboxes - problem solved.

  • Trying to add exact spot in places, using Google Maps L/L, but places wont

    trying to add exact spot in places, using Google Maps L/L, but places wont find it, just get the spinning circle all the time.
    Ive found it exactly in Google maps, and it gives me a long number but I type into my add new place, and it just hangs there till I cancel it.
    Anyone help me please?
    cheers

    Thanks I just thought that if Im tagging Geo manually, it would be easier to find in google maps in Safari, then copy and paste it in my places.
    So you can only sort f manually do it be finding places, dragging the pin to where you want?
    Suppose it ok this way, was just hoping I could be super accurate.
    cheers

  • How to define multiple ship-to parties at contract header level

    Hi Gurus,
    Could anyone advise me if it's possible to have multiple ship-to parties at quantity contract header level?
    Thank you!

    Hi
    It is not possible to have multiple ship to parties. Please explain your business requirement for this so that altenatives can be suggested by any member to fulfull your requirement.
    Thanks,
    Ravi

  • Multiple ship to parties to be displayed for a Sold-to party in VA01

    Hi Gurus,
    My client requirement is they want drop down list of Ship-to-parties for a customer, when he is entered as Sold-to-party in VA01.
    Adding Multiple SH in Partners tab will allow us to do so. but the issue is SH parties are more than 20.
    Do we need to add more SH parties with the help of ABAPers ? The fields allowed are less than 20.
    Can we link the SH account group to the Sold-to-party, with required SHparties.
    When we enter SP in VA01 and go to SH field it should display the drop down list of all the SH parties assigned for  the Sold to party with out adding them in the partners tab. When you select this SH Party, then it should be taken allowed partner function.
    Could you throw some light on this.
    Urgent requirement please.
    Best Regards
    Srikanth

    Hi Bhavana
    This is fine and we are following the same but now the SH number have increased and in Customer Master Partner functions you can incorporate that many.
    Either you have to go for ABAP developement or find some alternative way.
    For that reason only I posted in SDN.
    Thanks
    Regards
    Srikanth

  • MULTIPLE SHIP TO PARTIES

    Dear Friends,
    Wish you a very happy new year 2008.
    I have a special business scenario where  for one Sold to party multiple delivries have to be made to different ship to parties. Is it possible for the system to automatically split the deliveries?ex. I enter line item and the quantity 10, for one item can the system automatically create different deliveries of quantity 1 each??

    Hi,
    System splits the deliveries if Ship-to parties are different, automatically. Now for you scenario that 10 Ship-to parties should be delivered with one item each, you need to maintain 10 Ship-to parties for a Sold-to party.
    At the item level you can manaully change the Ship-to party for each item in a single sales order. SO when you'll do delivery thru VL01N, then 10 deliveries will be created.
    Regards
    SD

  • Assigning Multiple Ship to Parties / Bill to parties / Payers for 1Customer

    Hi all,
    can anybody guide me how to assign n no of Ship to parties, n no of Bill to parties and n no of Payers for One Customer.
    Thanks in Advance
    Ravi Kumar B.

    Hi
    If the partner functions SH,PY and BP are not configured as unique in the partner determination procedure for the Customer, you can add these customers to the SP.
    As explained above, goto XD02 - Sales Area Data - Parner Functions tab- enter the partner function(eg.SH) and the corresponding customer number which you want to add as SH to this SP. Likewise you can add any number of customers and for other partner functions also.
    But before doing this, be sure that those customers(SH,BP,PY etc.,) are existing/already created.
    Thanks,
    Ravi

  • Add multiple elements in response using rules

    All,
    I am very interested to know if anyone can tell me how I can add multiple elements in the response using the rules engine in oracle SOA 11g (version 11.1.1.3).
    For every rule that fires I want to add a complex element named Rule which contains the elements code and description of the rule fired. This information should be returned in the response.
    I hope somebody has the answer.
    Many Thanks
    Ren

    All,
    Please see below forum for an answer:
    Re: Unbounded element in Business Rules
    Regards,
    Ren

  • How to create multiple ship to parties to one sold to party.

    Hi  ALL,
    Presently we are working with one sold to party having one ship to party.Now the same customer have placed the order with two different delivery points.For this existing customer, how i can create one more ship to party with different delivery address.Can anybody guide me where to start doing the configuration for this along with T codes.
    Thanks in advance
    kumar

    Hi Ramesh,
    As you said I have created one more SH and assinged to existing customer master record.When I am creating the sales order Popup is showing SH party with selection option of one SH.Here I am not able to create one sales order with two ship to parties.Can you come clear on this.Is it possible to create one sales order with two SH?
    Thanks in advance
    kumar

  • Multiple ship to parties for one sold to party.

    Hi all,
    Suppose we get a P.O which has material A quantity is 10. the sold to party tells that each of the 10 items must be edlivered to 10 different ship to parties. I mean each ship to party recieves 1 qty of material A. Can you explain what setting should be done to process this type of process.

    Hi Vikrant,
    For restricting the quantity to 1 for each ship-to party, you need to go to VOV7, choose your Item Category, there you'll find a check box "Order quantity equal to 1". But in this case for every ship-to party you need to create sparate Order.
    Hope this will prove helpful to you
    Reward points if so
    Regards
    SD

  • Why i do not have "Custom" category when trying to add a new web part

    I have deployed a .wsp solution to my web application as follow, using Visual studio:-
    But when I try to add this web part to my brand new enterprise wiki site collection, I can not see any “custom” web part area as follow:-
    Baring in mind that we have an old site collection also of type enterprise wiki and is inside the same web application, which have the “custom” tab visible as follow:-

    Hello john, 
    did you try to disable and enable again the WebApp feature that hosts the webpart, on central administration?
    If it's not working, try to change the scope of you feature to "site collection" instead of "web application"
    now i try retracting then re-deploying the farm solution again but still it will work on the old site collection only.
    Now seems i am a bit confused as i do not have much knowledge in developing solution. now the solution i deployed is mainly for fixing Redirect problem in SharePoint managed metadata navigation, the OnInit method is as follow:-
    protected override void OnInit(EventArgs e)
    var request = HttpContext.Current.Request;
    var response = HttpContext.Current.Response;
    if (!String.IsNullOrEmpty(request.QueryString["TreeField"])
    && !String.IsNullOrEmpty(request.QueryString["TreeValue"]))
    response.Redirect(String.Format("{0}?TreeField={1}&TreeValue={2}",
    SPContext.Current.ListItem.ParentList.DefaultViewUrl,
    request.QueryString["TreeField"],
    request.QueryString["TreeValue"]));
    else if (!String.IsNullOrEmpty(request.QueryString["TreeField"]))
    response.Redirect(String.Format("{0}?TreeField={1}",
    SPContext.Current.ListItem.ParentList.DefaultViewUrl,
    request.QueryString["TreeField"]));
    base.OnInit(e);
    and the solution have the following settings inside the visual studio , where the Site URL refers to my development machine URL . but this did not cause any problem inside the live serve old site collection:-
    and when i deploy the farm isolation i did the following steps :-
    - I copy the wsp from the visual studio project.
    - Then i run the following command inside the Live server "stsadm -o addsolution –filename [c:....]\WikiKnowledgeBaseRedirect.wsp"
    - Inside the live server i went to "central administration>>system settings>> Manage farm solutions>>click on WikiKnowledgeBaseRedirect>>click on deploy solution >>select the web application from the “Deploy To?" drop
    down".
    now as i mentioned before the wsp worked well inside my old site collection, although the site URL refers to the test server site collection (not sure if this was overridden when I deployed the solution to live server).  but inside the new site collection
    i can not find this solution inside the "site setting>>site collection features" nor inside the "site settings>>web designer gallery>> web part"? can u advice based on the above ?

  • Help! i'm trying to add multiple titles to my movie,but imovie won't let me

    i'm trying to use titles to add supers to my mini commercial. this is what i've done so far: imported video. added sound effects. added a product photo at end of clip. added a title over first four seconds of clip. now, i want to add additional titles at intervals throughout the 22 second film. it won't let me. am i doing something wrong?

    I had the same problem, cos sometimes imovie won't let you add more titles when you try to take them straight from the title menu. I happened to me mostly when the clip itself is quite short. While imovie won't let you overlay several titles, you surely can have several titles, one after the other, in your project. To do this, I used a little trick: Add some small clip to the end of your project. Doesn't matter what, you're gonna delete it again anyway. You can then add another title to this additional clip. Then you just drag this title from there to your actual clip and place it where you want it. And then you do the next one(s) the same way until you have all your titles where you want them. At the end you just delete the "helping" clip again. It might be a bit complicated way of doing things, but it worked for me.

  • Trying to add multiple titles

    I'm trying to do something that I would imagine to be very simple, yet it's proving to be very frustrating.
    I simply want to have a few lines of text appear on the screen with a gradual fade, but appear one at a time, keeping the line above it...just like you would do in Keynote or Powerpoint.
    iMovie seems unable to do this, which is a huge frustration, as it was the main reason I updated...hoping for some better Title features. I could have sworn that older versions of iMovie used to do this.

    Hi
    I don't think You can do this in one step - BUT
    • first do one Title
    • Export out as full Quality QuickTime .mov
    • import this movie and move it into a project and add next title
    In this way one can build rather elaborate clips
    Yours Bengt W

  • Trying to add titles in IMovie. Using IMovie 8.0.6 and Mac OSX version 10.6.8.  When I try to add titles IMovie shuts down.  What do I need to do to stop the shut downs?

    I can not add Titles in IMovies.  When I click on the Titles, IMovie shuts down.  I am using Mac OSX Version 10.6.8 and IMovies version 8.0.6
    Was able to add some Titles yesterday, but had some problems with shut downs.  Today I can not get past clicking on Titles without a shutdown

    DK Flash,
    http://support.apple.com/kb/TS3310 but you have 10.6.8. So this shouldn't apply. But just in case.
    This had to do with the Far Far Away title causing iMovie to quit.
    Try clearing caches and plist.
    Do the behavior persist in a new user on the computer?
    Calbe

  • Multiple Ship to parties to Single Slod to party.

    Hi Friends,
    In my Client business process : One Slod to party have more than 4000 ship to paries and one Sales order delivered the min 3000 ship to paries at time and almost same material also.How to map this process In sap.
    And finally all deliveries combin single Invoice along with single line item and track the also Delivery nos to the Invoice
    Regards,
    Rao

    In the sales order, based on the number of shipt to parties, create one line item for each ship to with order quantities for that ship to and change the ship to details in the Item level partners details (Item-Partners tab) removing the ship to defaulted from the header. Do not change the payer details at item level. When creating the delivery, different delivery will be created for different ship to. During billing, invoice will be created for all the delivered quantities since the Payer is same for all the order items in the sales order.
    Regards,
    Ravi

Maybe you are looking for

  • Creation of material master

    Dear all, While entering of MM01, MM02, MM03 T codes, The system showing the error message - "Record Y1 01 does not exist in Table T133A" - for this what do I do, Plz suggest. reg Vishnu.Ch

  • No wi-fi

    ipod is reading "no wi-fi" i reviewed the wi-fi address and it no longer has any information.  What can I do to resore wi-fi

  • My iMac A1173 intel core duo 1.83 GHz is beyond sluggish

    Everything I try to do with my iMac seems to be taking forever (no really, it's slow) I checked out what I could with the system profiler and it says everything is good to go... albeit, it took an hour just to go through the list. Safari takes foreve

  • How to add server runtime

    Hi, I created a java project that has util classes. I need to use the HttpSevlet API. So i tried to add weblogic libraries. But it says "Weblogic System Libraries can only be used with projects that target a Weblogic Server runtime". Then I click the

  • Unable to launch downloads

    ..new user...done something wrong When I download something (non-apple) and try to launch it I get a message there is no default application to open the download, but giving an option to choose an application, none of which seems to be applicable. Pr