Skip to Content
author's profile photo Former Member
Former Member

SMP 2.3 Create Operation Calls SAP RFC Twice (iOS)

Hi,

I have a problem with sap for mobile 2.3 and create operations. When i call create operation from ios, it calls SAP twice. One with no arguments that i put in create operation, one with arguments.

Here is my objective c code, maybe there is something wrong with my code or maybe i shouldnt use create operation. I am not sure, but i need to send table as import parameter to SAP.

[updateMBO create:@"I" withI_km_durum:[km value] withI_uname:@"AKEREMB" withI_trbel:[documentDetail documentNo] withI_yakit_durum:[fuel value] withI_plate_number:[[documentDetail selectedCar] plateNo] withIt_equipments:updateList withIt_expenses:expenseList];

[updateMBO submitPending];

[updateMBO save];

[garentaGarentaDB synchronize:@"AddPmItem"];



Note : i tried to save first and submitPending later and it still called SAP twice.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jan 10, 2014 at 01:28 PM

    Hi Ata,

    Please check this discussion. I am sure this would be really helpful regarding your query.

    Rgrds,

    Jitendra

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,


      Update : Okay when i create a blank mbo and connect the operation, it only calls SAP once and arguments are full but now i cant get return parameters. I dont know how can i get return parameters because sync method now does not wait rfc to end.


      Please Help

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.