cancel
Showing results for 
Search instead for 
Did you mean: 

Hi, can someone please Help me ?

Former Member
0 Kudos

Hello,

Can someone please Help me, if i dont get this solved soon my boss will scrap SUP altogether and

we will move to some boring alternatives

I am trying to make following small pilot project:

    - IPhone Workflow hybrid container app

    - must call test bapi BAPI_TEST (BAPI exists and it is returning dummy test string aka "Hello this is SAP")

    - user must be provided with login screen where he enters SAP credentials (not sup)

Here is what I have done and later I will explain problem:

1. I created MBO for BAPI, and gave it run time credentials as "username" and "password".

2. I created a new workflow project, and selected client initiated and credential request starting points.

3. the credential request screen is created with username and password. the default edit boxes have cache credential username and password  as checked. * so we have 2 starting points, 1 credential request, and other client initiated which goes then into BAPI test call.

After app starts, i enter VALID sap credentials in username and password fields, but afterwards when BAPI is called

i get Login Failed as error description in log. (see detailed log attached). (username and password entered belong to confirmed valid SAP account) Why i can not pass username and password and authorize on SAP? Same BAPI call works OK if i hard code same credentials in the MBO connection properties.

Thank you in advance!

Mihael.

20120417T143240.750|3|logontestLT3:1 -- loading meta data from: C:\Sybase\UnwiredPlatform\Servers\MessagingServer\Data\Mobile Workflow\24_1\workflowclient.xml

20120417T143240.765|3|logontestLT3:1 -- loading meta data for screen: Start_Screen and action: Get Items

20120417T143240.765|4|logontestLT3:1 -- ExecuteRequest->In

20120417T143240.765|3|logontestLT3:1 -- executing operation 'findAll' of type 'search' on mbo 'LT3' in package 'LOGONTEST:1.0'

20120417T143240.765|3|logontestLT3:1 -- using username and password value from device credential cache

20120417T143240.765|3|logontestLT3:1 -- username: TESTMOB

20120417T143240.765|3|logontestLT3:1 -- password: [xxxxxxxx]

20120417T143240.765|4|logontestLT3:1 -- ExecuteJsonRequest->In

20120417T143240.765|4|logontestLT3:1 -- JsonHeader: {"id":"e5d3a237c1aa410693210d612f2c0129","cid":"8#logontestLT3:1","pv":"1","pid":"moca://SIMULATOR-USER1__HWC","ppm":"eyJ1c2VybmFtZSI6IlRFU1RNT0IiLCJwYXNzd29yZCI6IklOSVQwMSJ9","method":"search","pbi":"true","upa":"VEVTVE1PQjpJTklUMDE=","appId":"HWC","mbo":"LT3","app":"logontestLT3:1","pkg":"LOGONTEST:1.0"}

20120417T143240.765|4|logontestLT3:1 -- JsonContent: {"searchId":101,"parameters":{},"namedQuery":"findAll","buildGraph":true}

20120417T143241.031|4|logontestLT3:1 -- ResponseHeader: {"id":"e5d3a237c1aa410693210d612f2c0129","cid":"8#logontestLT3:1","pv":"2","sig":"fd025f5e86444d6db8048b45ab070311","loginFailed":true,"method":"searchFailed","log":[{"level":5,"message":"java.lang.SecurityException: Login Failed: user 'TESTMOB'","operation":"search","requestId":"e5d3a237c1aa410693210d612f2c0129","_op":"C","code":401,"timestamp":"2012-04-17 14:32:40.937","component":"LT3"}],"mbo":"LT3","app":"logontestLT3:1","pkg":"LOGONTEST:1.0"}

20120417T143241.031|4|logontestLT3:1 -- ResponseContent: {}

20120417T143241.031|4|logontestLT3:1 -- ExecuteJsonRequest->Out

20120417T143241.031|4|logontestLT3:1 -- ExecuteRequest->Out

20120417T143241.031|4|logontestLT3:1 -- Data(Out): <XmlWidgetMessage><Header></Header><WidgetScreen>Credential_Request_Screen</WidgetScreen><RequestAction>Get Items</RequestAction><Values /></XmlWidgetMessage>

20120417T143241.031|4|logontestLT3:1 -- ProcessSyncRequest->Out

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi Mihael

Check this thread

http://scn.sap.com/thread/3183582 this might help you.

Regards,

Dinesh

Answers (2)

Answers (2)

Former Member
0 Kudos

hi Mihael

What is the domain of your package? in SCC

Thanks

Dinesh.

Former Member
0 Kudos

hi DineshChakkravarthi,

It is the default domain with admin Security context.

Regards,

Mihael

Former Member
0 Kudos

Can you also post the server log files?