Skip to Content
author's profile photo Former Member
Former Member

BDC - Screen 332 is not updating ?

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 11, 2007 at 02: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?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.