cancel
Showing results for 
Search instead for 
Did you mean: 

Update field XBLNR from FB01

oliver_am
Participant
0 Kudos

Hi all.

Is it possible to change the value of field XBLNR after save in transaction FB01 ?

We are trying with BTE 00001030 but is not working, any change is reflected afterwards.

As a workaround we are using a FM IN UPDATE TASK from this BTE to update the BKPF field, but I wonder if is there a proper way to do it.

Thanks in advance

Accepted Solutions (0)

Answers (3)

Answers (3)

oliver_am
Participant
0 Kudos

Hello.

We cannot use a substitution in OBBH because we need the document number and in this transaction we have a temporary number like &1.

The requeriment is make a substitution taking the document number and other constants we have.

Thanks

iklovski
Active Contributor

Document number is assigned on later stage. Why would you build a logic which is based on a document number, which is merely a counter? If it is about the certain range, then this should be controlled by document type.

Bottom line: the update could happen in the 'standard' entry points (e.g. substitution), post-factum (i.e. you would have to run some job updating already posted documents) or with non-standard development. The choice is yours 🙂

oliver_am
Participant
0 Kudos

Hi, thanks for answer.

The requeriment is to change the value of this field with some rules in the moment the user is saving(posting) the document in the creation.

"If you want to change this value before the document is saved, then the best way would be a substitution; you don't specifically need a BTE for this."

Could you, please, give me a clue how to do this substitution ? We need to do it by code, transparent to the user.

We have not found any badi/exit to do it.

Thanks.

Ragards,

iklovski
Active Contributor

Why don't you use a substitution user-exit, as I suggested? OBBH?

I'm not sure what you mean by 'transparent to the user', but in substitution module you can either create a simplistic rule, type 'if A then B' or create a user-exit, and there the sky is the limit; you can could use whatever logic you want.

iklovski
Active Contributor
0 Kudos

Hi,

Do you mean a post-factum change in front-end of with some program?

If you want to change XBLNR of a posted document, it is possible in front-end with simple FB02. If you choose to make some mass update with program, there is equally no problem with this, unless you have some specific dependency on this field in your business process.

If you want to change this value before the document is saved, then the best way would be a substitution; you don't specifically need a BTE for this.

Regards,

Eli

oliver_am
Participant
0 Kudos
iklovski
Active Contributor
0 Kudos

Yes, go ahead. It should answer your requirements