cancel
Showing results for 
Search instead for 
Did you mean: 

Business connector and idoc

Former Member
0 Kudos

Experts

Currently i am working on BC for creating

sales order using idoc , i have input file with me,

which is an xml format and the mapping is ready in

BC , only problem which i am facing is that i am not

able to understand following thing

1) How can i test these mapping as initial input

for mapping is node ,which won't except any input

2) How we can call these idoc structure(for example

ORDERS) in my BC.

Accepted Solutions (1)

Accepted Solutions (1)

former_member187339
Active Contributor
0 Kudos

Hi,

Press the arrow button in the developer screen. Generally in real case there might be some front end (like ASP or jsp) which will invoke your service in BC and your scenario is executed.

Regards

Suraj

Former Member
0 Kudos

I know by invoking these forntend my service

will be invoked ,But i want to debug each and

every step of my mapping ,which i am not able to

do so if i invoke these service from an external serivce

,for example in my case it is java

former_member187339
Active Contributor
0 Kudos

Hi,

For debugging the java mapping, there is only one way. Write system.out.println() and see the result in the server command window. (B4 doing this go to server->bin and execute server.bat, so that u can see the output of SOP there.)

Happy debugging!!!

Regards

Suraj

Former Member
0 Kudos

HI Suraj

let me explain you the scnario properly ,have a java

client which will send xml data to BC , in my BC .mapping

is done so that input from xml will be mapped to required

structure ,structure is similar to that of idoc structure,

problem is when i send input from my java program , i really don't know what exactly is happening in BC side.

My question is how i can debug BC,since in BC receiving

point is node ,hence i can't give input directly to these

BC ,so i don't know how these service work.

former_member187339
Active Contributor
0 Kudos

Hi,

What now I get from the question is that you want to understand the steps in BC. Go for tracing (F5) and after each step check the Results tab and you can see the output of that step.

Regards

Suraj

Former Member
0 Kudos

Hi Suraj,

You got the point ,But as i said that

starting point in BC itself is node which won't except

any input ,hence when i debug using F5 it fail at first

step,but same serive except input from a java client,

hence debugging these service is not possible

former_member187339
Active Contributor
0 Kudos

Hi,

Yes, now i got your problem. Do this, whenever you want to test the flow, include this step at the start:

pub.string:base64Decode

And give your input as a XMLstring.

Regards

Suraj

Former Member
0 Kudos

Hi Suraj,

Thanks for replying back now let me explain you what

happen after incorporating what you said

<b>Before change</b>

<b>Flow service:</b>

service is starting with pub.web:getDocumentType

<b>after change</b>

<b>Flow service:</b>

service start with pub.string:base64Decode

which have input filed as string ,here i am giving

my xml input ,it get converted and get stored in output

which is node here ,this node is input for pub.web:getDocumentType ,here start the problem

it dumb by saying that "parameter document is of incorrect type"

Former Member
0 Kudos

you tell me how to convert string to object(node)

former_member187339
Active Contributor
0 Kudos

Hi,

Try this:

<b>pub.web:stringToDocument</b>

Regards

Suraj

Former Member
0 Kudos

Hi Suraj,

Great,Thank a lot, only i have two more doubt

1) I am not sure of XI ,since i worked on BC only,

do XI provide automatice generation of java code ?

2) curently i am looking into the serive that will create

inbound idoc in R/3 (ORDERS),since i worked with BAPI

and BC ,i am not much aware of IDOC, can we call

IDOC in our service directly as BAPI ,if so how?

former_member187339
Active Contributor
0 Kudos

Hi,

>>I am not sure of XI ,since i worked on BC only,

do XI provide automatice generation of java code ?

Not like BC, you have to write it manually.

>>curently i am looking into the serive that will create

inbound idoc in R/3 (ORDERS),since i worked with BAPI

and BC ,i am not much aware of IDOC, can we call

IDOC in our service directly as BAPI ,if so how?

See IDOC and BAPI'S are two different techniques for contacting the R/3. What you can do is call IDOC inside BAPI. BAPI is like your function (say java) and inside that you are creating an IDOC (say a file) and you are sending it to that R/3. For IDOCs you have to set Routing rules and all.. I think this might be helpful:

http://www.ups.com/sap/configuration/Configuration.pdf

Good, after long time a BC query. Now i think you will close this thread and BTW have you seen this:

Regards

Suraj

Answers (0)