2013 Oct 25 6:25 AM
Dear Friends,
i am creating BDC program for Ik02 Tcode ( Chage Measuring points ), i have written the below code in one of the method , but i am getting error
"FORMs cannot be defined in a class pool, For this reason, there is no PERFORM statement for internal FORMs"
can any please give me the solution
Advance Thanks
Vijaya
METHOD sync_data1.
PERFORM bdc_dynpro USING 'SAPLIMR0' '1110'.
PERFORM bdc_field USING 'BDC_CURSOR'
'IMPT-POINT'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'IMPT-POINT'
'196'.
PERFORM bdc_dynpro USING 'SAPLIMR0' '5110'.
PERFORM bdc_field USING 'BDC_CURSOR'
'IMPT-PTTXT'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=BU'.
PERFORM bdc_field USING 'IMPT-PSORT'
'BLS03'.
PERFORM bdc_field USING 'IMPT-PTTXT'
'Test 3 friday at 10.36 am - shdb - r'
& 'ec'.
PERFORM bdc_field USING 'IMPT-INDCT'
'X'.
PERFORM bdc_field USING 'IMPT-CODGR'
'BLSCHUTZ'.
PERFORM bdc_field USING 'RIMR0-CJUMC'
'+_________________'.
PERFORM bdc_field USING 'RIMR0-PYEAC'
endmethod.
2013 Oct 25 6:28 AM
Hi Vijaya
Subroutine FORM doesn't supports class method.
You can create multiple methods at the place of different FORM(S) in the same class and call them in class method.
Thanks,
Mukesh
2013 Oct 25 6:28 AM
2013 Oct 25 6:36 AM
Hi Laxmi,
You will have to use Mehtod calls instead of FORM-PERFORM to acheive your requirement.
REgards,
DN.
2013 Oct 25 8:03 AM
Hi Vijaya
Subroutine FORM doesn't supports class method.
You can create multiple methods at the place of different FORM(S) in the same class and call them in class method.
Thanks,
Mukesh
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |