‎2005 Dec 02 2:51 PM
Hi All,
I am following the below procedure to populate the transaction F-32 using BDC but I have a small doubt:
1) I go to F-32 Transaction code populate the required fields on that and press F5
2) It takes to second screen which has three fields as Field in which I am populating BELNR, second field is Lower Limit field which has a value combination of year document type document number, third field is left blank.
Now I need to Clear Only part of the second field say for example year part.
How can I do that? Has anyone faced this kind of problem if so Please reply back.
Thanks & Regards,
Joseph Reddy.
Message was edited by: Joseph Reddy Yeruva
‎2005 Dec 02 3:14 PM
In the second field, wouldn't you just enter the lower limit for the document number and enter the upper limit in the third field. Then on the second line do the same for the fiscal year and on the third line do the document type?
Rob
‎2005 Dec 02 3:14 PM
In the second field, wouldn't you just enter the lower limit for the document number and enter the upper limit in the third field. Then on the second line do the same for the fiscal year and on the third line do the document type?
Rob
‎2005 Dec 02 3:17 PM
Hi Rob,
This is how the code is written
PERFORM bdc_dynpro USING 'SAPMF05A' '0131'.
PERFORM bdc_field USING:
'BDC_CURSOR' 'BKPF-WAERS',
'BDC_OKCODE' '=SLB',
'RF05A-AGKON' p_kunnr,
'BKPF-BUDAT' lv_date,
'BKPF-MONAT' '11',
'BKPF-BUKRS' p_bukrs,
'BKPF-WAERS' gv_waers.
'RF05A-XNOPS' c_x.
perform bdc_dynpro using 'SAPMF05A' '0733'.
perform bdc_field using 'BDC_CURSOR' 'RF05A- SEL01(01)'.
perform bdc_field using 'BDC_OKCODE'
'=PA'.
perform bdc_field using 'RF05A-FELDN(01)'
'BELNR'.
perform bdc_field using 'RF05A-FELDN(02)'
record-FELDN_02_008.
perform bdc_field using 'RF05A-FELDN(03)'
record-FELDN_03_009.
perform bdc_field using 'RF05A-FELDN(04)'
record-FELDN_04_010.
perform bdc_field using 'RF05A-SEL01(01)'
lv_belnr.
perform bdc_field using 'RF05A-SEL01(02)'
record-SEL01_02_012.
perform bdc_field using 'RF05A-SEL01(03)'
record-SEL01_03_013.
perform bdc_field using 'RF05A-SEL01(04)'
record-SEL01_04_014.
perform bdc_dynpro using 'SAPDF05X' '3100'.
perform bdc_field using 'BDC_OKCODE'
'=OMX'.
perform bdc_field using 'BDC_CURSOR'
'DF05B-PSSKT(01)'.
perform bdc_field using 'RF05A-ABPOS'
'001'.
perform bdc_dynpro using 'SAPDF05X' '3100'.
perform bdc_field using 'BDC_OKCODE'
'=Z+'.
perform bdc_field using 'BDC_CURSOR'
'DF05B-PSSKT(01)'.
perform bdc_field using 'RF05A-ABPOS'
'001'.
perform bdc_dynpro using 'SAPDF05X' '3100'.
perform bdc_field using 'BDC_OKCODE'
'=BU'.
perform bdc_field using 'BDC_CURSOR'
'DF05B-PSSKT(01)'.
perform bdc_field using 'RF05A-ABPOS'
'001'.
CALL TRANSACTION 'F-32' USING gt_BDCDATA
MODE 'A' "gv_mode
UPDATE gv_updat.
Rgds,
Joseph
‎2005 Dec 02 3:42 PM
‎2005 Dec 02 3:18 PM
Hi Joseph,
The second field (RF05A-SEL01) which is of type char 30, the lower limit.
Here, if you dont want to populate year, just populate document type and document year. (This is a Selection Criteria field for selecting Open Items).
In your case it will select open items based on doc type and doc number.
Regards,
Raj
‎2005 Dec 02 3:27 PM
Hi Rajasekhar,
I want to populate all the fields and clear them one after the other.
Rgds,
Joseph.
‎2005 Dec 02 3:33 PM
Hi Joseph,
You can only populate a value into this field (thru BDC), all modifications to this field content should happen before you pass this value to the screen field.
Just pass doc type along with document number into this field.
Regards,
Raj
‎2005 Dec 03 8:34 AM
Hi,
First use F-32 for creating the data for all the records. Then select the records which are present in int'table as well as database & do the BDC only for this field using the corresponding transaction. Here, using this field u can remove the year and keep other fields as usual and do the postings.
If this helps u, Pl. award appropriate points.