cancel
Showing results for 
Search instead for 
Did you mean: 

Backend adapter for download only data object missing coding in GET_BEDATA

Former Member
0 Kudos

Hi all,

We have created a data object in NW7.1 and this is a download only data object.

So in the backend adapter we have linked a getlist and a getdetail function.

We also mapped the nodes to the functions.

When we generate the backend adapter and look into the coding of the generated class into the fuction GET_BEDATA we miss the mapping of the getlist output the the input fields of the getdetail.

Normally you loop over the getlist results and then fill the getdetail input parameters inside the loop before cleaning all other parameters. but between the loop at, and the clear function we miss a few lines of coding which should fill the input params of the getdetail.

So I guess we just missed a flag of a short part of the configuration, but I don't know which part.

Can anyone help me whit this issue?

Thanks in advance and kind regards,

Bart Elshout

Accepted Solutions (1)

Accepted Solutions (1)

sivasatyaprasad_yerra
Active Contributor
0 Kudos

1. Does the GET DETAIL bapi wrapper have importing parameters?

2. If not, which means Get Details is written for bulk data download. Did you mark Use bulk flag in backend adapter mappings?

Regards,

Siva.

sivasatyaprasad_yerra
Active Contributor
0 Kudos

Ok. One more clue

1. Is the structure used in Get List and Get Details are same. If not, this code will not be generated.

Check Structure used in Tables parameter of Get List bapi wrapper.

Check Structure used in Importing parameters of Get details bapi wrapper.

Regards,

Siva.

Former Member
0 Kudos

Hi Siva,

My getdetail has two importing parameters:

- FIELD1 (of ABAP type Z_FIELD_1)

- FIELD2 (of ABAP type Z_FIELD_2)

My getlist has 1 table parameter with abap structure Z_STRUC_1.

Z_STRUC_1 contains a 10 fields.

Two of these fields are:

- FIELD1 (of ABAP type Z_FIELD_1)

- FIELD2 (of ABAP type Z_FIELD_2)

So there are a 8 extra fields in the getlist table exporting structure.

This should be possiible, because this is the same as some other example products in our system.

Is this correct?

Regards,

Bart

sivasatyaprasad_yerra
Active Contributor
0 Kudos

Hi Bart,

Get Details

- FIELD1 (of ABAP type Z_FIELD_1) ..... Is this referred as STRUCTURE-FIELD?

- FIELD2 (of ABAP type Z_FIELD_2) ..... Is this referred as STRUCTURE-FIELD?

Eg:

- FIELD1 (of ABAP type Z_STRUC_1-FIELD1)

- FIELD2 (of ABAP type Z_STRUC_1-FIELD2)

You need modify the backend adapter once to get these changes. Then activate the backend adapter.

Try like this. Code should be generated.

Regards,

Siva.

Edited by: Siva Satya Prasad Yerra on Jan 11, 2011 7:00 PM

Former Member
0 Kudos

Hi Siva,

This was the problem.

I reffered to a different structure with the same fields in the getdetail importing fields.

So I corrected it and now it works.

Thanks in advance,

Bart

Answers (0)