Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
Read only

Problem with BDC batch input in Tcode: ME31L

Former Member
0 Likes
2,400

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?

7 REPLIES 7
Read only

Former Member
0 Likes
2,137

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.

Read only

0 Likes
2,137

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.

Read only

0 Likes
2,137

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

Read only

0 Likes
2,137

Hi,

Thanks, I will also check my side.

best regards,

Steven

Read only

0 Likes
2,137

Hi Qin Zheng,

Try using  CONDENSE bdcdata-fval. in your FORM bdc_field before append bdcdata. This will remove extra space before your value.

Read only

Former Member
0 Likes
2,137

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.

Read only

0 Likes
2,137

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