cancel
Showing results for 
Search instead for 
Did you mean: 

Debug

Former Member
0 Kudos

Hi...

1.How can i debug the catalog url..??

2. ITS degug?

3. Meta Bapi?

4. Limitation in BADI?

5. Non-MM objects that must be executed in SRM??

Plz answer these question....

thx..

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

thx..

peter_novoth
Active Contributor
0 Kudos

Hi,

2) ITS debugging (I hope you mean the internal ITS):

You need to open the SRM in the browser and parallel also in SAP GUI. This two sessions have to be on the same application server (If you use more application server, on the GUI call the transaction SM51, and doubleclick the server, where actually your browser session is located).

In the GUI you call the code what you would like to debug (e.g. the function META_BAPI_DISPATCH). Enter the coding (trx. SE37) -> display than in the menu choose: Utilities -> settings -> ABAP Editor -> Debugging.

Here

- enter the ID of the Web user

- uncheck IP matching

- new debugger

- Session breakpoint active immed

By clicking on the browser, a separate debugger Window will be opened on the SAP GUI.

3) Set a breakpoint in the Function META_BAPI_DISPATCH (SE37).

If you reach the breakpoint, jump out with F7, and with F5 enter the place

 
CALL FUNCTION 'call function' 

The parameter 'call function' is the name of the function module what you need to debug.

Keep checking the link: http://wiki.sdn.sap.com/wiki/display/SRM/Shoppingcarttransfer

There will be soon a document released about the SC transfer debugging. Here is also the meta concept mentioned.

The META_BAPI_DISPATCH reads the table BBP_FUNCTION_MAP. In this table are the meta-functions located.

4) More information would be needed, what's your question is related. The BAPIs are 'normal' function modules, which are released for external calls. So in the SE37 just set a breakpoint...

Regards,

Peter

ricardo_cavedini
Active Contributor
0 Kudos

Hi,

Regarding your question 2, you can take a look at note 870454, which explains how to set an external breakpoint. Just pay attention if the server is the same in R/3 SAP_GUI (SM51) and that one accessed through web (it is written in the URL address).

Question 1:

You have to capture the OCI data, POST method using a HTTP trace. Start the trace when sending the items from catalog to SRM.

You will have something like:

NEW_ITEM-CURRENCY[1] USD

NEW_ITEM-DESCRIPTION[1] TEXT

NEW_ITEM-PRICE[1] 137.00

NEW_ITEM-QUANTITY[1] 1

NEW_ITEM-UNIT[1] EA

NEW_ITEM-VENDORMAT[1] LLL123

Once you have these fields, set a BP after CALL FUNCTION 'WSI_IMPORT_DATA' in FM BBP_WS_IMPORT_SC_DATA.

- Call BBPSC01/02/03;

- Type ADDI code within ok_code box, hit enter and BP will be called;

- Fulfill table 'lt_oci_data' with relevant values taken from OCI data;

- Change sy-subrc to "0" and inform iv_webservice_id with the catalog ID, defined in SPRO;

- Then hit F8 and item will be added to cart.

I hope these information help.

Kind regards,

Ricardo

Former Member
0 Kudos

answer for remaining question...