ā2013 Dec 25 8:17 AM
Hello experts,
when i used SHDB to record a BDC using tcode ME31L, it woks fine and create a schedule agreement. but when i want to test this BDC by directly processing the recording i have just recorded in SHDB, and set process mode as background processing(mode = 'N') ,then it did not run successfully with log 'Formatting error in the field EKPO-ETFZ1 ; see next message' 'Make an entry in all required fields', it looks so weird. obviously ,i have set value for all mandatory field.
by the way , whether the field EKPO-ETFZ1 is mandatory ,it depends on the agreement type. For other agreement type ,this field is not required ,but for my scenario, for type 'ZCS', this field is mandatory.
could anybody help me?
ā2013 Dec 25 8:52 AM
Hi,
Your screen is design or field group is depends on the agreement type. try to put the if condition .
if ag_type = 'X'.
PERFORM THE BDC_FILED " EKPO-ETFZ1 required
ELSE.
don't call the screen field " not required
endif.
ā2013 Dec 25 9:10 AM
Hi, kiran
thanks for your kind help. i konw what you mean ,but my problem is i record the BDC using ag type 'ZCS', and the field EKPO-ETFZ1 is mandatory. but when i process the bdc and i have given the field value '3' as you can see in the screenshot , it showed up an error message '....required fields', i'm confused. why value '3' is not assigned to the screen field ?
thanks.
ā2013 Dec 25 9:28 AM
Hi,
I think the ETFZ1 and ETFZ2 are the DEC(3) data types. Can you check the values how you are passing! ( try to avoid the leading spaces and pass the value from the right justified.
better to transfer the recording into Z program and declare the ETFZ1(3) TYPE C.
pass the same value! for me it is working fine
ā2013 Dec 26 1:56 AM
ā2013 Dec 26 5:16 AM
Hi Qin Zheng,
Try using CONDENSE bdcdata-fval. in your FORM bdc_field before append bdcdata. This will remove extra space before your value.
ā2013 Dec 27 2:09 AM
Hi Kiran, Lohit
thanks for your kind help, i think what you said should be able to solve may problem, but the embarrassing thing is there is no business data on DEV client , neither i can create a Z program in QAS client ,so far i can't test it in program ,and i will check it later.
anyway ,thanks all you guys again.
have a good day.
ā2013 Dec 27 8:11 AM
Hi,
This is a problem of every developer to get the data in Dev . at least try to process the recording in QA to check your results