ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Another BAPI call problem

Post new topic  Reply to topic
 Another BAPI call problem « View previous topic :: View next topic » 
Author Message
mfractal
PostPosted: Mon May 05, 2008 4:04 pm    Post subject: Another BAPI call problem Reply with quote

Novice

Joined: 07 Apr 2008
Posts: 14

Hi All, in addition to the previous BAPI call problem that i reported before i now have another one.
I am using MB 6.1 with SAP adapter version 6.1.0.1.
Using the wizard I have created a new output adapter calling a bapi function named BBP_PO_DELETE and mapped a new message set for this adapter.

Now to simplify the explanation, i will show a call that works and a call that does not.

Here's a call that works :

Code:

<SapBbpPoDelete>
   <Purchaseorder>4500000023</Purchaseorder>
   <SapPoItemsForDelete>    
      <PoItem>0010</PoItem>      
      <DeleteInd>x</DeleteInd>
     </SapPoItemsForDelete>   
</SapBbpPoDelete>


After executing this call i see in SAP that the current item (PoItem number) is marked for deletion like expected.

Now, i saw in sap that i can in a singe call delete multiple PoItems.
And in the message set that was created for that call i can see that i SapPoItemsForDelete structure can repeate.

So, i try to call the method with multiple PoItems in the call.
Like this :
Code:

<SapBbpPoDelete>
   <Purchaseorder>4500000023</Purchaseorder>
   <SapPoItemsForDelete>    
      <PoItem>0010</PoItem>      
      <DeleteInd>x</DeleteInd>
     </SapPoItemsForDelete>   
   <SapPoItemsForDelete>    
      <PoItem>0030</PoItem>
      <DeleteInd>x</DeleteInd>
     </SapPoItemsForDelete>
   <SapPoItemsForDelete>    
      <PoItem>0050</PoItem>      
      <DeleteInd>x</DeleteInd>
     </SapPoItemsForDelete>   
</SapBbpPoDelete>



After execution of the function, i can see that only the first item was deleted (0010).

I am trying to find out what is it i am doing wrong.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon May 05, 2008 8:03 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

You might need to debug the SAP call (BAPI) as well...

I would expect that you have to retrieve the PO first. (This should provide you with all the elements). Then put all rows on the table but only mark for deletion the ones you want to delete...

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Another BAPI call problem
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.