cancel
Showing results for 
Search instead for 
Did you mean: 

SAPEVENT:POST does not work

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

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

robin_janke
Contributor
0 Kudos

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

Former Member
0 Kudos

Adding to what Robin has suggested...

the HOOK_URL is what you have mentioned.

HOOK_URL - generated by sap

To make sure the  which HOOK_URL is maintained in SRM System. .

Check in SPRO-->...->Define webservices(dont know the exact path).

pls try this and let us know..

Former Member
0 Kudos

Might be the return URL is missing to SRM system  and conclusively the form is unable to POST the date when you submit.

Former Member
0 Kudos

i don't know what you mean with "Might be the return URL is missing to SRM system" the return URL is the "SAPEVENT:POST" value that was generated by sap system. what is wrong with my form.