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

bdc - values are not saved in database

Former Member
0 Likes
732

hi mates

im have recorded the transaction for XK01 and im using batch input session. when i process the session my transactions are failing

can any body help me

regards

mano

hi mates

im have recorded the transaction for XK01 and im using batch input session. when i process the session my transactions are failing

can any body help me

regards

mano

2 REPLIES 2
Read only

Former Member
0 Likes
490

Hi,

Just make sure that all the data fields are replaced with the value fields i.e. internal table fields. and check whether u have placed the code for save.

PERFORM F_9000_APPEND_BT USING:

'SAPLCJWB' '0901' 'X',

'BDC_OKCODE' '=BU' ' '. "SAVE

FORM F_9000_APPEND_BT USING IV_FNAM LIKE GT_BT-FNAM

IV_FVAL TYPE ANY

IV_DYNBEGIN LIKE GT_BT-DYNBEGIN.

CLEAR GT_BT. "Clear the field string...

IF IV_DYNBEGIN = 'X'.

GT_BT-PROGRAM = IV_FNAM.

GT_BT-DYNPRO = IV_FVAL.

GT_BT-DYNBEGIN = 'X'.

ELSE.

GT_BT-FNAM = IV_FNAM.

GT_BT-FVAL = IV_FVAL.

ENDIF.

APPEND GT_BT.

ENDFORM. "End Of f_9000_append_bt

Read only

Former Member
0 Likes
490

Hi!

Make sure some empty fields are not being filled with values such as '0000'... I had once to make a batch-input program for this transaction, and that was the point it was failing.

Also, if you're filling some of the table controls, double-check if your code is fitting well.

If that does not work, can you post your code for us to take a look? I think it may help a lot!

It would help a lot too posting the messages you're getting from the execution log from SM35 analysis.

Tks!