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

BDC

Former Member
0 Likes
1,035

Hi,

What is the use of the field DYNBEGIN (screen start) in structure BDCDATA?

10 REPLIES 10
Read only

former_member194669
Active Contributor
0 Likes
1,014

Hi,

Check this.

BDCDATA-DYNBEGIN describes the default or intial screen of the transaction which was used in BDC.

BDCDATA is the structure used for mapping logic( means move the cursor position from internal table work area to specified apllication and specified screen).

form bdc_dynpro using program dynpro.

clear bdcdata.

bdcdata-program = program. "MODULE POOL PROGRAM NAME

bdcdata-dynpro = dynpro. " CURRENT ACTIVE SCREEN

bdcdata-dynbegin = 'X'. ' DEFAULT SCREEN

append bdcdata.

endform.

aRs

Read only

Former Member
0 Likes
1,014

The BDCDATA structure contains the following fields:

• PROGRAM: Name of module pool program associated with the screen. Set this field only for the first record for the screen.

• DYNPRO: Screen Number. Set this field only in the first record for the screen.

<b>• DYNBEGIN: Indicates the first record for the screen. Set this field to X, only for the first record for the screen. (Reset to ‘ ‘ (blank) for all other records.)</b>

• FNAM: Field Name. The FNAM field is not case-sensitive.

• FVAL: Value for the field named in FNAM. The FVAL field is case-sensitive. Values assigned to this field are always padded on the right, if they are less than 132 characters. Values must be in character format.

Read only

Former Member
0 Likes
1,014

Hi,

dynpro means a screen.DYNBEGIN indicates the beginning of the screen.

i,e.when we are working with a transaction so many screens will come in sequence,to indicate the beginning of a screen we will assign a value 'X' to this field in BDCDATA table

rgds,

bharat.

Read only

Former Member
0 Likes
1,014

Hi

DYNBEGIN will mark the start of a screen in the program. (i.e entering into the screen)

If current screen is 0200 (starts with a DYNBEGIN), after populating all the required fields of the screen along with OK_CODE, you go to next screen say 0300 by having a DYNBEGIN stmnt.

For eg:

WA_BDC-PROGRAM = 'SAPMF02K'.

WA_BDC-DYNPRO = '0107'.

WA_BDC-DYNBEGIN = 'X'.

APPEND WA_BDC TO T_BDC.

CLEAR WA_BDC.

WA_BDC-FNAM = 'BDC_OKCODE'.

WA_BDC-FVAL = '/00'.

APPEND WA_BDC TO T_BDC.

CLEAR WA_BDC.

WA_BDC-FNAM = 'LFA1-NAME1'.

WA_BDC-FVAL = 'Gunasekhar'.

APPEND WA_BDC TO T_BDC.

CLEAR WA_BDC.

WA_BDC-FNAM = 'LFA1-SORTL'.

WA_BDC-FVAL = 'GAMA'.

APPEND WA_BDC TO T_BDC.

CLEAR WA_BDC.

WA_BDC-FNAM = 'LFA1-ORT01'.

WA_BDC-FVAL = 'BANGLORE'.

APPEND WA_BDC TO T_BDC.

CLEAR WA_BDC.

WA_BDC-FNAM = 'LFA1-PSTLZ'.

WA_BDC-FVAL = '560029'.

APPEND WA_BDC TO T_BDC.

CLEAR WA_BDC.

WA_BDC-FNAM = 'LFA1-LAND1'.

WA_BDC-FVAL = 'IN'.

APPEND WA_BDC TO T_BDC.

CLEAR WA_BDC.

WA_BDC-FNAM = 'LFA1-SPRAS'.

WA_BDC-FVAL = 'EN'.

APPEND WA_BDC TO T_BDC.

CLEAR WA_BDC.

WA_BDC-DYNPRO = '0120'.

WA_BDC-DYNBEGIN = 'X'.

APPEND WA_BDC TO T_BDC.

CLEAR WA_BDC.

WA_BDC-FNAM = 'BDC_OKCODE'.

WA_BDC-FVAL = '/00'.

APPEND WA_BDC TO T_BDC.

CLEAR WA_BDC.

WA_BDC-DYNPRO = '0130'.

WA_BDC-DYNBEGIN = 'X'.

APPEND WA_BDC TO T_BDC.

CLEAR WA_BDC.

WA_BDC-FNAM = 'BDC_OKCODE'.

WA_BDC-FVAL = '=ENTER'.

APPEND WA_BDC TO T_BDC.

CLEAR WA_BDC.

WA_BDC-DYNPRO = '0310'.

WA_BDC-DYNBEGIN = 'X'.

APPEND WA_BDC TO T_BDC.

CLEAR WA_BDC.

WA_BDC-FNAM = 'BDC_OKCODE'.

WA_BDC-FVAL = '/00'.

APPEND WA_BDC TO T_BDC.

CLEAR WA_BDC.

WA_BDC-FNAM = 'LFM1-WAERS'.

WA_BDC-FVAL = 'INR'.

APPEND WA_BDC TO T_BDC.

CLEAR WA_BDC.

WA_BDC-DYNPRO = '0320'.

WA_BDC-DYNBEGIN = 'X'.

APPEND WA_BDC TO T_BDC.

CLEAR WA_BDC.

WA_BDC-FNAM = 'BDC_OKCODE'.

WA_BDC-FVAL = '/00'.

APPEND WA_BDC TO T_BDC.

CLEAR WA_BDC.

WA_BDC-DYNPRO = '0300'.

WA_BDC-DYNBEGIN = 'X'.

APPEND WA_BDC TO T_BDC.

CLEAR WA_BDC.

WA_BDC-FNAM = 'BDC_OKCODE'.

WA_BDC-FVAL = '=YES'.

APPEND WA_BDC TO T_BDC.

CLEAR WA_BDC.

Regards

Raj

Message was edited by:

Rajasekhar Dinavahi

Message was edited by:

Rajasekhar Dinavahi

Read only

Former Member
0 Likes
1,014

Dynbegin - It means start of a new screen..

give points if useful.

Read only

0 Likes
1,014

DYNBEGIN indicates whether it is a start of a new screen or not . The value 'X' indicates start of screen.

Read only

Former Member
0 Likes
1,014

Hi,

DYNBEGIN: Indicates the first record for the screen. Set this field to X, only for the first record for the screen (Reset to ' ' (blank) for all other records).

Regards,

Bhaskar

Read only

Former Member
0 Likes
1,014

BDCDATA-DYNBEGIN describes the default or intial screen of the transaction which was used in BDC.

Read only

Former Member
0 Likes
1,014

DYNBEGIN indicates whether it is a start of a new screen or not . The value 'X' indicates start of screen.

Read only

Former Member
0 Likes
1,014

Hi Debarshi,

Dynbegin indicate the initial screen of any transaction. for Example if you are running a transaction code FK02 (Vendor master Edit) to edit the telephone numbers of the vendors then the initial screen that you find in FK02 is populate in BDC and to show that initial screen u must have to pass value in DYNBEGIN otherwise it will not consider it as inital screen.

<b>Rewards points if useful.</b>

Regards,

Kinjal