cancel
Showing results for 
Search instead for 
Did you mean: 

ENRICH_ITEM_DATA + create Shopping Cart from external Business Server Page

matthias_kasig2
Participant
0 Kudos

Dear SRM Gurus,

I am on SRM 2.0 with EBP 3.5 and Requisite 3.5/88.

On the Web Interface I get the message (German):

"Sachkonto 6610005 ist nicht angelegt (Bitte Eingabe prüfen) (Position 1) "

which means translated: G/L Account No 6610005 not available - please check your entry (position1).

I don't even find the Message Class which holds the message - It's not under package BBP_PU. In fact, when logging on in English - still the message is displayed German, while the messages in message class of package BBP_PU are translated.

In fact, I think, I am almost done - all required fields are accessible in ABAP - I just don't know, when to put what where...

thanx in advance, matthias

Message was edited by: Matthias Kasig

Message was edited by: Matthias Kasig

Message was edited by: Matthias Kasig

Accepted Solutions (0)

Answers (1)

Answers (1)

cyanna_chung2
Explorer
0 Kudos

Hi Matthias,

I noticed you have posted this msg a few months back, but I am doing similar thing like you have described here, and I am just wondering how you get the value of the hook_url? I defined my BSP page as an external catalog, and when I ran it in debugging mode, I noticed the SAP standard program has populated part of the hook_url, but not with the host and sessions information.

Any help on this is greatly appreciated!

Best regards,

Cyanna

matthias_kasig2
Participant
0 Kudos

Hi CChung,

I've got a pdf "Open Catalog Interface" which also gives an html example - i can email you.

But let me tell you how I did it.

1. You define a catalog in SPRO for your BSP. SPRO -- general settings -- Enterprise Buyer -- define catalogs

there you place a parameter HOOK_URL as return URL. I guess that is what you already did.

2. Now it's really simple. When you jump to your BSP the HOOK_URL gets also transferred to your BSP. You just have to set up the page attribute 'HOOK_URL' as string auto-value (don't forget to check auto), and then you should be able to deal with its value the way you want.

In my case I transfer the value to a second result.htm.

I set up an htmlb:form which includes an invisible input field:

<htmlb:inputField id       = "I01"
                          value    = "<%= HOOK_URL %>"
                          disabled = "X"
                          visible  = "FALSE"
                          width    = "550" />

I guess a hidden field will do to.

In Event Handler OnInputProcessing I refer to this via:


DATA: data_t TYPE REF TO cl_htmlb_inputfield.
IF event->id = 'B01' AND event->event_type = 'click'.

  data_t ?= cl_htmlb_manager=>get_data(
                              request = runtime->server->request
                              name     = 'inputField'
                              id       = 'I01'
                              ).
  IF NOT data_t IS INITIAL.
    hook_url = data_t->value.
  ENDIF.

and:

navigation->set_parameter( name = 'HOOK_URL' value = hook_url ).

or I use it for aborting in JavaScript like this:

      <script language="JavaScript" type="text/javascript">
      <!--
        function abbrechen()
       {
           location.href = "<%= HOOK_URL%>";
       }
       //-->
       </script>

Hope you get it, regards, Matthias

cyanna_chung2
Explorer
0 Kudos

Hi Matthias,

Thanks for your thorough answer. I want to reward point to you, but I can't since the question was not posted by me.... anyway, just want to thank you again!

Best,

Cyanna

matthias_kasig2
Participant
0 Kudos

Hi Cyanna,

nice to hear every 2 or 3 months from you - anyway, thanx for the 'thought-of' points