cancel
Showing results for 
Search instead for 
Did you mean: 

IDOCS and Tablestructure

Former Member
0 Kudos

Hi Experts

Is it possible to receive IDOCS and tables at a time in a program using sapidoc3 and sapjco3 ?.

If possible how to handle those pls explain clearly.

Regards

Sridevi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I want receive a table(like vbak ,vbep some details) and at the same time i want receive an IDOC from sap.

How to write a code for receiving both table structure and IDOC receiving from SAP using sapjco3 and sapidoc3 jars.

Former Member
0 Kudos

Hi Sridevi,

Since your requirements are not clear, it's hard to answer your question. In general I'd say though the answer is no, because the simplified API the SAP JCo IDoc library provides (especially for sending or receiving IDocs) does not account for getting/sending other data at the same time.

The part that's unclear to me is whether you're talking about a JCo client (data is pulled from SAP by the external Java client) or a server (data is pushed out from SAP to the external JCo server). In either way the IDoc sent from SAP is (unless you use XML) most likely already in the form of tables (i.e. EDIDC and EDIDD or the more specific structures depending on SAP version). E.g. you can take a look at function module IDOC_INBOUND_ASYNCHRONOUS and there you can see that the IDoc basically is specified as data in internal tables. The JCo IDoc library provides a layer around that though, which hides this, but also restricts you in what you can do.

If you have to combine the data in one RFC call (not sure if this really is a requirement for you), then probably your only chance for using JCo IDoc library is to encode the table data in your IDoc (i.e. add custom segments like Z1VBAK, Z1VBEP, etc. and store the data within the IDoc).

Best wishes, harald

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You can receive iDocs in java.

What do you mean by tables? If you mean BAPI, yes you can consume a BAPI from java.

Thanks,

Venkat