Skip to Content
0
Former Member
Jun 29, 2006 at 09:05 PM

MBST BDC and Ztable filed to be update

50 Views

Hi Guys,

In BDC Call transaction for MBST reversal postings After the BDC Success posting the indicator field from Ztable should update to blank and I need to print the error records and success records as well. I am sending the steps that I am doing. Please validate.

1) Fethcing the records from Z (BUKRS,BDS RefNo,Budat ) where indicator is 'X'.

2) Based on Budat and bds reference number I am fetching records from MSEG and MKPF by joining these two tables into an final internal table.

3) looping to the final internal table I am doing the BDC posting the data to MBST.

4) inside the call transaction if sy-subrc = 0 then for that success records I need to set the Z table indicator as Blank. for this I am using the query

UPDATE z SET filed = ' '

WHERE key fields in Z table.

<b>COMMIT WORK.</b>

I am able to get the records are posted but the indicator is setting as it is and it is not moving blank after posting.

Could you please help me asap.

Regards,

<b>Guest.</b>