Application Development 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: 

BDC - Screen 332 is not updating ?

Former Member
0 Kudos

We were adding the below logic to populate field <b>BVTYP</b> but the program is not going to the<b> screen 332</b> to add the field.

Below is the related code and LFBK does not contain LOC_LIFNR value.

DATA: LOC_LIFNR LIKE LFA1-LIFNR.

LOC_LIFNR = ZFFTAB-NEWKO+0(10).

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

EXPORTING

INPUT = LOC_LIFNR

IMPORTING

OUTPUT = LOC_LIFNR.

SELECT COUNT(*)

FROM LFBK

INTO COUNT

WHERE LIFNR = LOC_LIFNR.

IF SY-SUBRC EQ 0.

IF COUNT GT 1.

PERFORM DYNPRO_FIELD USING 'BDC_OKCODE' '=ZK'.

PERFORM DYNPRO_START USING 'SAPMF05A' '332'. "call screen 332

PERFORM DYNPRO_FIELD USING 'BSEG-DMBE2' ZFFTAB-DMBE2.

PERFORM DYNPRO_FIELD USING 'BSEG-BVTYP' ZFFTAB-BVTYP.

PERFORM DYNPRO_FIELD USING 'BDC_OKCODE' '=ZK'.

ENDIF.

PERFORM DYNPRO_START USING 'SAPMF05A' '302'.

ENDIF.

1 REPLY 1

Former Member
0 Kudos

How to solve this . I am not that good in BDC. Could you please explain..

I have observed in debugging : LFBK table does not contain LOC_LIFNR value ( 80805556 ).

Don't understand how to see this?