cancel
Showing results for 
Search instead for 
Did you mean: 

wanted to add list of record to supobj list - from XCODE

Former Member
0 Kudos

hi all,

we are trying call a bapi from ios device thro SUP where in one of the input parameter is of Datatype 'TABLE' whihc can accept more then one record ie multi record.

myself have created the MBO and generated the ios code in whihc the input parameter is defined as SUPobjectlist type.

we want to know the syntax to append more then one record to the SUPobjectlist type from xcode while calling the BAPI

for example,

MBO Name - CreateSO

Operation - CallSO

i/p parameter - ITEM (which is table datatype in SUP and SUPObjectList in xcode generated)

so before calling operation we wanted to add list of item to supobj list.

please do the needful by guiding us on this regards.

thanks

SK

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

hi all,

myself tried the same generating the code for BB device and now we are able to login and populate the values in the sturctures for calling a MBO operation. below is the code where are now facing the problem while saving the data before calling the operations. it doesnt show any error and also doesnt go futher in ececuting the code.

as said before we are using SUP 2.1.2 version.

<MBO_Operation_Obj> Opr = new <MBO_Operation_Obj>();

Opr.<setStruct>(Value);

Opr.save(); or Opr.create(); --> in this line the code gets stuck and desnt go futher to next line and also doesnt gives any error

Opr.submitPending();

please guide to resolve the issue.

thanks

SK

fenil_doshi
Participant
0 Kudos

Hi Sivakumar,

                    I myself is also trying the same thing but in IOS but I am not able to create the proper structure from xcode and if you have experience in IOS you can help me out with the same and also Takayoshi Osawa You also can help me out as I tried the same thing adding multiple records to SUP structure but I always get unrecognised inatance sent to selector in console output and also when I have null value the RFC gets a call but with null data and If I assign SUPObjectlist to it then it sends and exception of unrecognised selector.

Regards,

Fenil Doshi.

Former Member
0 Kudos

We tried doing the code changes from UI front and it is getting called successfully but not able to see anything on SUP. CHecked in the logs of SUP and it states the below warning,

2012-02-23 05:20:40.906 WARN Other sup.mbs.17 [DSD_IPAD.server.DSD_IPADDB] {"_op":"C","level":5,"code":500,"eisCode":"","message":"com.sybase.djc.SystemException:synchronization group not found:unsubscribe","component":"DSD_IPADDB","entityKey":null,"operation":"synchronize","requestId":"99575895","timestamp":"2012-02-23 10:20:40.905","messageId":0,"_rc":0}

2012-02-23 05:26:01.761 WARN Other sup.mbs.17 [DSD_IPAD.server.DSD_IPADDB] {"_op":"C","level":5,"code":500,"eisCode":"","message":"com.sybase.djc.SystemException:synchronization group not found:unsubscribe","component":"DSD_IPADDB","entityKey":null,"operation":"synchronize","requestId":"101275895","timestamp":"2012-02-23 10:26:01.761","messageId":0,"_rc":0}

myself would want to know the way to trace trace to capture data sent from UI sent to SUP.

there are no warnings or errors from UI xcode perspective.

please help us.

thanks

SK

Former Member
0 Kudos

Hi Sivakumar,

maybe something like that:


// Create MBO
CreateSO *so = [[[CreateSO alloc] init] autorelease]; // new method may be okay for instantiation

// Create Container of ITEM
ITEMList *items = [[[ITEMList alloc] init] autorelease]; // ITEMList is derived class generated by SUP
so.ITEM = items; 

// Create ITEM and add ITEMList (repeat number of elements)
ITEM *item1 = [ITEM alloc] init] autorelease];
[items addObject:item1];
// set values to properties

// Call and submit
[so CallSO];
[so submitPending];

Regards