on 07-28-2010 6:35 AM
Hello,
I attempt for SRM 5.5 above SPRO to add additional parameters for the URL link construction. This is possible over SPRO-> Supplier relationship Management->SRM Server->Business Add-in the (BAdIs)(BBP_CAT_CALL_ENRICH) . However, are here only I have standard values and system values.Now my question: Is it possible to work about the BADI also with variable parameter?. I attempted over the structure CT_POST_VALUES per user to add variable parameters. Unfortunately SAP ignores these and put them away. What can I do, that SAP accepts this parameters. Who can help me, or are there other possibilities preparing the URL? Thanks a lot for your assistance|.
Walter
Hi,
It should work. Please share your BADI code.
Regards,
Masa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Masa,
thank for your fast reaction, here the source code:
METHOD if_ex_bbp_cat_call_enrich~cat_call_enrich.
IF is_cat_entity-service_id = 'WMUS_OMAX10'.
ELSE.
RETURN.
ENDIF .
DATA: zmanacs_func_code TYPE zuhl_grd_gpf-manacs_func_code,
zmanacs_segm_code TYPE zuhl_grd_gpf-manacs_segm_code,
wa_post_values TYPE savwctxt,
wa_grp_gpf TYPE zuhl_grd_gpf,
ztabix TYPE sy-tabix .
DATA: t_post_values TYPE BBPT_SAVWCTXT.
IF is_cat_entity-business_type = '01'.
RETURN.
ENDIF.
zmanacs_func_code = zuhl_grd_cl_gpf_buffer=>get_attribute( attribute_name = 'MANACS_FUNC_CODE' ).
zmanacs_segm_code = zuhl_grd_cl_gpf_buffer=>get_attribute( attribute_name = 'MANACS_SEGM_CODE' ).
wa_post_values-fieldname = 'sy-uname'.
READ TABLE ct_post_values WITH KEY fieldname = wa_post_values-fieldname INTO wa_post_values.
IF sy-subrc = 0.
wa_post_values-fieldcont = zmanacs_func_code.
wa_post_values-fieldname = 'MANACS_FUNC_CODE'.
ztabix = sy-tabix + 1.
INSERT wa_post_values INTO ct_post_values INDEX ztabix.
ENDIF.
"MANACS_SEGM_CODE
wa_post_values-fieldname = 'MANACS_FUNC_CODE'.
READ TABLE ct_post_values WITH KEY fieldname = wa_post_values-fieldname INTO wa_post_values.
IF sy-subrc = 0.
wa_post_values-fieldcont = zmanacs_segm_code.
wa_post_values-fieldname = 'MANACS_SEGM_CODE'.
ztabix = sy-tabix + 1.
INSERT wa_post_values INTO ct_post_values INDEX ztabix.
ENDIF.
ENDMETHOD.
I tried to add the variable parameters between 'sy-uname' and HOOK_URL.
After that ct_post_values looks like this:
1 username 00000000 xxxxxxxxxxx
2 password 00000000 xxxxxxxxxx
3 sy-uname 00000000 xxxxxxx
4 MANACS_FUNC_CODE 00000000 33039
5 MANACS_SEGM_CODE 00000000 N18362
6 HOOK_URL 00000000 HOOK_URL/?Okcode=ADDI&target=_top&~caller=CTLG
7 OCI_VERSION 00000000 4.0
But the routine comes back a second time and ct_post_values is emty. At least only the custimized Parameters were placed at the URL.
Can you please help me to find a solution of the problem.
Walter
Hi,
IMG document says,
-
2. Add new entries to the internal table ct_post_values.
The table has the line category SAVWCTXT . Enter a field name and a value for each entry. Do not enter a field index.
-
Sample code:
wa_post_values-fieldname = 'Company'.
wa_post_values-fieldcont = l_company.
APPEND wa_post_values TO ct_post_values.
Regards,
Masa
Hi Masa,
so I did in the BADI
CT_POST_VALUES Struktur SAVWCTXT:
Row FIELDNAME FIELDINDEX FIELDCONT
1 username 00000000 xxxxxxxxxxx
2 password 00000000 xxxxxxxxxx
3 sy-uname 00000000 xxxxxxx
4 MANACS_FUNC_CODE 00000000 33039
5 MANACS_SEGM_CODE 00000000 N18362
6 HOOK_URL 00000000 HOOK_URL/?Okcode=ADDI&target=_top&~caller=CTLG
7 OCI_VERSION 00000000 4.0
But SAP changes the customized values with priority and added the 'manacs' parameters at the end of the URL.
My meaning was, that CT_POST_VALUES is inserted in sequence of row number. I need the paramameters before HOOK_URL
Do you have an other idea?
THX and best regards.
Walter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.