2012 May 18 5:06 AM
Hi Experts,
II have created a BDC program to create transfer orders using transaction LT04.
I have to clear the default values tht get populated in two screen fields.I tried passing space in the code and it does not work. The fields still get populated withe default values.
I saw some suggestions for clearing parameter ids in the forum , but these fields do not have parameter ids assigned.
Here is my code for passing space.
PERFORM bdc_field USING 'RL03T-ANZL2' ' '.
PERFORM bdc_field USING 'RL03T-LMEN2' ' '.
Please suggest a solution to this.
Thanks,
Saritha.
2012 May 18 5:16 AM
Hi,
Try to pass space by the ASCII value number 255( Type with following combination ALT key + 255, this will give you a space) you can test this any where combination of ALT key + 255 give you a space.
or
Use cl_abap_char_utilities=>horizontal_tab.
Sample :-
CONSTANTS : c_space TYPE c VALUE ' '. (ALT key + 255)
or
CONSTANTS : c_space TYPE c VALUE cl_abap_char_utilities=>horizontal_tab.
PERFORM bdc_field USING 'RL03T-ANZL2' c_space.
Thanks & Regards
Bala Krishna
2012 May 18 5:16 AM
Hi,
Try to pass space by the ASCII value number 255( Type with following combination ALT key + 255, this will give you a space) you can test this any where combination of ALT key + 255 give you a space.
or
Use cl_abap_char_utilities=>horizontal_tab.
Sample :-
CONSTANTS : c_space TYPE c VALUE ' '. (ALT key + 255)
or
CONSTANTS : c_space TYPE c VALUE cl_abap_char_utilities=>horizontal_tab.
PERFORM bdc_field USING 'RL03T-ANZL2' c_space.
Thanks & Regards
Bala Krishna
2012 May 18 5:19 AM
did you try like this:
PERFORM bdc_field USING 'RL03T-ANZL2' SPACE.
2012 May 18 5:23 AM
Hello Saritha,
Just pass spaces for these fields, it should work properly.
The other way might be to clear the parameter IDs using SET PARAMETER ID, but this might not work if someone else processes the session. Typically in PROD, you might not be sure this will work, also clearing PARAMETER ID's might not be advisable.
Regards,
Shyam
2012 May 18 5:23 AM
Hi,
Try giving space instead of null,
constants : c_space type char1 value ' '.
PERFORM bdc_field USING 'RL03T-LMEN2' c_space.
Thanks and regards,
kartik.