Skip to Content

Update field XBLNR from FB01

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Feb 22, 2019 at 02:47 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 25, 2019 at 08:11 AM

    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,

    Add a comment
    10|10000 characters needed characters exceeded

    • 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.

  • Posted on Feb 25, 2019 at 11:42 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • 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 :)

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.