Skip to Content
0
Former Member
Dec 11, 2006 at 11:12 PM

BDC input for a "write input" field

77 Views

I got stuck with a gem... I'm calling a report that has two screens and supplying input via BDC. The first screen is the typical 1000 parameter screen. The second screen is created in the report from a set of "write:/ fieldx input" abap statements. It lists as SAPMSSY0 screen 120.

Here's the code:

PERFORM BDC_DYNPRO

USING 'ZRGCT0D' '1000'.

PERFORM BDC_FIELD

USING 'BDC_CURSOR' 'P_SWERK'.

PERFORM BDC_FIELD

USING 'BDC_OKCODE' '/08'.

PERFORM BDC_FIELD

USING 'P_SWERK' T_VEPO-WERKS.

PERFORM BDC_FIELD

USING 'P_MATNR' W_MATNR.

  • select document screen

PERFORM BDC_DYNPRO

USING 'SAPMSSY0' '0120'.

PERFORM BDC_FIELD

USING 'BDC_CURSOR' 'W_VBELN'.

PERFORM BDC_FIELD

USING 'BDC_OKCODE' '/00'.

PERFORM BDC_FIELD

USING 'W_VBELN' LIKP-VBELN.

In report program ZRGCT0D, there are parameters P_SWERK and P_MATNR. If the parameters are valid, and the user submits "execute" F8, then the program performs the following:

WRITE: / W_VBELN INPUT.

When I try to map this field with the BDC code above, it shows up empty. I did a BDC recording and verified that the screen was SAPMSSY0 0120, but the values I put into the fields do not show up in the recording. Why????

Question... is it possible to map to a "write xxx input" field using BDC.