2008 Mar 06 6:49 AM
Hi i am writing DBC program for f-02 ,code is follows,all the posting is going well i wont hide the screen in bcd (direct post the transaction with out user interfere ) .how can i do it
perform bdc_dynpro using 'SAPMF05A' '0100'.
perform bdc_field using 'BDC_CURSOR'
'RF05A-NEWKO'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'BKPF-BLDAT'
'060306'.
perform bdc_field using 'BKPF-BLART'
'SA'.
perform bdc_field using 'BKPF-BUKRS'
'6000'.
perform bdc_field using 'BKPF-BUDAT'
'06.03.2006'.
perform bdc_field using 'BKPF-MONAT'
'12'.
perform bdc_field using 'BKPF-WAERS'
'LKR'.
perform bdc_field using 'BKPF-XBLNR'
'18998'.
perform bdc_field using 'BKPF-BKTXT'
'SPX'.
perform bdc_field using 'FS006-DOCID'
'*'.
perform bdc_field using 'RF05A-NEWBS'
'01'.
perform bdc_field using 'RF05A-NEWKO'
'188'.
perform bdc_dynpro using 'SAPMF05A' '0301'.
perform bdc_field using 'BDC_CURSOR'
'RF05A-NEWKO'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'BSEG-WRBTR'
'2000'.
perform bdc_field using 'BSEG-ZFBDT'
'06.03.2006'.
perform bdc_field using 'BSEG-ZUONR'
'1.3'.
perform bdc_field using 'BSEG-SGTXT'
'18999'.
perform bdc_field using 'RF05A-NEWBS'
'50'.
perform bdc_field using 'RF05A-NEWKO'
'10001400'.
perform bdc_dynpro using 'SAPMF05A' '0300'.
perform bdc_field using 'BDC_CURSOR'
'BSEG-MEINS'.
perform bdc_field using 'BDC_OKCODE'
'=ZK'.
perform bdc_field using 'BSEG-WRBTR'
'2000'.
perform bdc_field using 'BSEG-MENGE'
'2'.
perform bdc_field using 'BSEG-MEINS'
'EA'.
perform bdc_field using 'BSEG-ZUONR'
'1.3'.
perform bdc_field using 'BSEG-SGTXT'
'18999'.
perform bdc_field using 'DKACB-FMORE'
'X'.
perform bdc_dynpro using 'SAPLKACB' '0002'.
perform bdc_field using 'BDC_CURSOR'
'COBL-KOSTL'.
perform bdc_field using 'BDC_OKCODE'
'=ENTE'.
perform bdc_field using 'COBL-KOSTL'
'6000010101'.
perform bdc_dynpro using 'SAPMF05A' '0330'.
perform bdc_field using 'BDC_CURSOR'
'BSEG-XREF2'.
perform bdc_field using 'BDC_OKCODE'
'=AB'.
perform bdc_field using 'BSEG-XREF1'
'1005151'.
perform bdc_field using 'BSEG-XREF2'
'1005151'.
perform bdc_dynpro using 'SAPMF05A' '0700'.
perform bdc_field using 'BDC_CURSOR'
'RF05A-NEWBS'.
perform bdc_field using 'BDC_OKCODE'
'=BU'.
perform bdc_field using 'BKPF-XBLNR'
'18998'.
perform bdc_field using 'BKPF-BKTXT'
'SPX'.
call transaction 'F-02' using bdcdata mode 'g_mode' messages into it.
Thanks
kanishka
2008 Mar 06 6:57 AM
Hi dear frd,
Three possible entries are there for MODE.
A - Show all screens.
E - Show only screens with errors.
N - Show no screens.
You can pass N if you dont want to show screens in BDC.
Rewards points if useful.
Regards,
GURU
2008 Mar 06 6:55 AM
Hi,
To hide particular screen , just comment the chuck of code(the screen you dont want) generated from recording program.
While exectuing the program , it will hide it.
Regards,
Madhu..!!
2008 Mar 06 6:56 AM
In call transaction statement use mode 'N' for processing without screen.
anya
2008 Mar 06 6:57 AM
Hi dear frd,
Three possible entries are there for MODE.
A - Show all screens.
E - Show only screens with errors.
N - Show no screens.
You can pass N if you dont want to show screens in BDC.
Rewards points if useful.
Regards,
GURU