Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problems with BDCDATA (Batch Input Map) and ALV-Grid

sebastian_lorberg
Product and Topic Expert
Product and Topic Expert
0 Likes
949

Hello,

I'm currently doing an ITS call of ERP transaction VF05 (Open Billing documents). Therefore I'm using a BDCDATA table for batch input and to fill all required fields (e.g. business partner, sales org, date). When I call the transaction directly, I get a result list as an ALV-Grid.

When I use the call transaction functionality with the batch input map the first screen is skipped as desired but I get an ugly old table view as a result and not the newer ALV-Grid. Does anyone know how to force the newer ALV-Grid to display the result?

Here is my code snippet:

data bdcdata TYPE TABLE of BDCDATA.

data WA_BDCDATA Type BDCDATA.

  • Fill batch input map with data for partner number

WA_BDCDATA-PROGRAM = 'SAPMV65A'. "Programm for transaction VF05

WA_BDCDATA-DYNPRO = '0100'. "Dynpro to call

WA_BDCDATA-DYNBEGIN = 'X'. "BDC screen start

WA_BDCDATA-FNAM = 'FACOM-KUNDE'. "partner parameter field VF05 transacti

WA_BDCDATA-FVAL = lv_partner. "put BP number into BP parameter field

Append WA_BDCDATA to BDCDATA.

CLEAR WA_BDCDATA.

  • Fill batch input map with data for date

WA_BDCDATA-FNAM = 'FACOM-FKDAT'. "Date from

WA_BDCDATA-FVAL = lv_dat_start. "Date from

Append WA_BDCDATA to BDCDATA.

clear WA_BDCDATA.

  • Fill batch input map with data for VKORG

WA_BDCDATA-PROGRAM = 'SAPMV65A'.

WA_BDCDATA-DYNBEGIN = 'X'.

WA_BDCDATA-DYNPRO = '0102'.

WA_BDCDATA-FNAM = 'FACOM-VKORG'.

WA_BDCDATA-FVAL = 'DE01'.

APPEND WA_BDCDATA to BDCDATA.

Clear WA_BDCDATA.

CALL TRANSACTION OBJECT-KEY-CODE using BDCDATA MODE 'E'. " Call transation VF05

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
550

Hi,

I think it is not possible to display the ALV Grid in thru BDC. while doing the recording itself its coming with list display.

Thanks,

Rajinikanth G

1 REPLY 1
Read only

Former Member
0 Likes
551

Hi,

I think it is not possible to display the ALV Grid in thru BDC. while doing the recording itself its coming with list display.

Thanks,

Rajinikanth G