cancel
Showing results for 
Search instead for 
Did you mean: 

SC creation using flat file loaded through OCI with BSP

laurent_burtaire
Active Contributor
0 Kudos

Hello,

I created a BSP application in order to load .CSV file with SC data.

This BSP has one page with flow logic. This fow logic consist in:

1- search for flat file,

2- load flat file (this mains to store data file in an internal table during "OnInputProcessing" event handler),

3- order data file (this means populate NEW_ITEM table from OCI).

My problem is, by ordering data file (third step seen above), i am not able to come back to SRM : i stay inside my BSP application.

I think this is because string 'HOOK_URL' is empty. Indeed, step 2 is managed by BSP element fileUpload inside a form whereas step 3 has its own form written as below:

<FORM action="<%= HOOK_URL%>" method=post target=_top>
code to manage dynamically NEW_ITEM table
<input type="submit" value="Shop" >

Unfortunately, at this moment, in the layout HOOK_URL is empty...

Could you give me some elements in order to bring back my SC data inside SRM ?

Regards.

Laurent.

Accepted Solutions (0)

Answers (1)

Answers (1)

laurent_burtaire
Active Contributor
0 Kudos

Hello,

I found threads below:

1- [Post data from BSP to an ITS application|;

2- [How to post OCI values to URL|;

First link confirmed me to use the action parameter of form i indicated in my first with my SRM application URL (HOOK_URL).

The second one is closer to my request but not totally: I am still not able to come back to SRM...

For HOOK_URL, i made an EXPORT TO SHARED MEMORY in order to keep this URL.. But the FORM action="<%= HOOK_URL%>" does nothing.

Regards.

Laurent.

laurent_burtaire
Active Contributor
0 Kudos

Hello,

Coding error in the BSP layout was at the origin of the problem.

Regards.

Laurent.