01-11-2007 2:27 PM
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.
01-11-2007 2:46 PM
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?