Application Development 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: 

BSEG-ZUONR updation | User-exit/ BADI to update

Former Member
0 Kudos
4,352

Hi Experts ,

Need your help on this. I searched SDN but did not find a suitable solution. Here is my requirement .

I need to update line item assignment field in FB02 for accounting documents. BSEG-ZUONR to be exact.

The documents have been created already, now need to update the field.

As I can see, it is read only field in FB02.

I have tried FM's FI_DOCUMENT_CHANGE , FI_ITEMS_MASS_CHANGE. But its not working.

Please suggest any suitable BADI/Exit or any other way to update the field.

Regards

Abhishek.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
893

Hi,

The bapi_acc_document_post is create a posting in accounting for certain business transactions. It is not allowing to change.

The user-exits I have tried. They are not working .


Please suggest experts.

Regards

Abhi


5 REPLIES 5

vinoth_aruldass
Contributor
0 Kudos
893

hi,

BAPI_ACC_DOCUMEN_POST’ is the main fm to update..

Following are the exits available for FB02

F050S001            FIDCMT, FIDCC1, FIDCC2: Edit user-defined IDoc segment

F050S002            FIDCC1: Change IDoc/do not send

F050S003            FIDCC2: Change IDoc/do not send

F050S004            FIDCMT, FIDCC1, FIDCC2: Change outbound IDoc/do not send

F050S005            FIDCMT, FIDCC1, FIDCC2 Inbound IDoc: Change FI document

F050S006            FI Outgoing IDoc: Reset Clearing in FI Document

F050S007            FIDCCH Outbound: Influence on IDoc for Document Change

F180A001            Balance Sheet Adjustment

FARC0002            Additional Checks for Archiving MM Vendor Master Data

FEDI0001            Function Exits for EDI in FI

RFAVIS01            Customer Exit for Changing Payment Advice Segment Text

RFEPOS00            Line item display: Checking of selection conditions

RFKORIEX            Automatic correspondence

SAPLF051            Workflow for FI (pre-capture, release for payment)

hope it helps,

Vinoth

Former Member
0 Kudos
894

Hi,

The bapi_acc_document_post is create a posting in accounting for certain business transactions. It is not allowing to change.

The user-exits I have tried. They are not working .


Please suggest experts.

Regards

Abhi


0 Kudos
893

Hi,

Did you say 'updation' ? 

I have seen BDC programs that update ZUONR (allocation) via FB02, but that was a long time ago.

I can't remember if they were custom-built or supplied by SAP. Might be worth trying, if you get desperate.

cheers

Paul Bakker

0 Kudos
893

Cheers Paul .

I tried this .The field ZUONR(allocation) is input-restricted in FB02. So the BDC program is failing with the error the BSEG-ZUONR is not an input field.

0 Kudos
893

Greetings all.

It is working with the FM FI_DOCUMENT_CHANGE .I missed some tricks in that.

Here is how it looks :

Importing

I_AWTYP                   =      BKPFF

I_AWREF                   =      BKPF-BELNR

I_AWORG                   =    ( Concatenate BKPF-BUKRS,BKPF-GJAHR )

I_KUNNR                    =  BSEG-KUNNR

Tables

T_ACCCHG-FDNAME = 'ZUONR'.

T_ACCCHG-NEWVAL = '123'.

Regards

Abhi