‎2007 Jul 24 4:59 AM
Hi,
What is the use of the field DYNBEGIN (screen start) in structure BDCDATA?
‎2007 Jul 24 5:02 AM
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
‎2007 Jul 24 5:02 AM
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.
‎2007 Jul 24 5:02 AM
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.
‎2007 Jul 24 5:03 AM
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
‎2007 Jul 24 5:08 AM
Dynbegin - It means start of a new screen..
give points if useful.
‎2007 Jul 24 5:51 AM
DYNBEGIN indicates whether it is a start of a new screen or not . The value 'X' indicates start of screen.
‎2007 Jul 24 5:42 AM
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
‎2007 Jul 24 5:48 AM
BDCDATA-DYNBEGIN describes the default or intial screen of the transaction which was used in BDC.
‎2007 Jul 24 5:50 AM
DYNBEGIN indicates whether it is a start of a new screen or not . The value 'X' indicates start of screen.
‎2007 Jul 24 5:57 AM
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