on 09-04-2012 3:20 PM
Hello,
i have problem with the oci. the catalog is called with following parameters:
name - value
url - url of homepage
username - username
password - password
HOOK_URL - generated by sap
~OkCode - ADDI
~target - _top
~Caller - CTLG
the login works perfectly. sap open a new window with the catalog.
now i would like to send the data with the special oci form.
the source of the form is:
<form id="test" target="_top" action="SAPEVENT:POST" method="post">
<input type="hidden" value="ADDI" name="~OkCode">
<input type="hidden" value="_top" name="~target">
<input type="hidden" value="CTLG" name="~Caller">
<input type="hidden" value="Test1" name="NEW_ITEM-DESCRIPTION[1]">
<input type="hidden" value="1" name="NEW_ITEM-QUANTITY[1]">
<input type="hidden" value="1" name="NEW_ITEM-UNIT[1]">
<input type="hidden" value="1.2" name="NEW_ITEM-PRICE[1]">
<input type="hidden" value="EUR" name="NEW_ITEM-CURRENCY[1]">
<input type="hidden" value="" name="NEW_ITEM-PRICEUNIT[1]">
<input type="hidden" value="Test1" name="NEW_ITEM-VENDORMAT[1]">
<input type="hidden" value="Test2" name="NEW_ITEM-DESCRIPTION[2]">
<input type="hidden" value="1" name="NEW_ITEM-QUANTITY[2]">
<input type="hidden" value="1" name="NEW_ITEM-UNIT[2]">
<input type="hidden" value="7.5" name="NEW_ITEM-PRICE[2]">
<input type="hidden" value="EUR" name="NEW_ITEM-CURRENCY[2]">
<input type="hidden" value="" name="NEW_ITEM-PRICEUNIT[2]">
<input type="hidden" value="Test2" name="NEW_ITEM-VENDORMAT[2]">
</form>
... nothing happens when i submit the form.
what is wrong?
thanks
Richard S.
I have the same problem, because HOOK_URL=SAPEVENT:POST is not complete.
it shout look like: HOOK_URL=SAPEVENT:POST?~TARGET=_top&~CALLER=CTLG&sap-client=200&sap-language=DE&~HTTP_CONTENT_CHARSET=utf-8
but I am missing everything which comes after the Questionmark.
How did you guys solve this?
Cheers,
Serdar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Richard,
this line:
<form id="test" target="_top" action="SAPEVENT:POST" method="post">
is wrong.
the action should be the value of the HOOK_URL.
Regards,
Robin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Might be the return URL is missing to SRM system and conclusively the form is unable to POST the date when you submit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.