Skip to Content

Get Hold data for FB01 with CALL TRANSACTION

Hello all, I am using CALL TRANSACTION to open FB01.

ls_opt-nobinpt = abap_true.
ls_opt-updmode = 'S'. 
CALL TRANSACTION i_tcode 
USING it_bdcdata
OPTIONS FROM ls_opt 
MESSAGES INTO lt_msg_bdc. 

In FB01 I use the function 'Hold data' to save my values.

If I call FB01 with my function again all fields are emtpy.

If I call FB01 directly via GUI my saved data is set successfully.

Is it possible to load my held data by using CALL TRANSACTION? If yes, how?

Thank you in Advance.

Add a comment
10|10000 characters needed characters exceeded

  • Do you mean the parameters in SU3? I don't think the 'hold data' function is linked with this as the data is only kept in the same mode. As soon as I switch the mode the held data is not available anymore in FB01.

    My colleagues and I were not able to identify where the data is saved. I would have tried to load the data and save it ot bdc data then.

  • Sorry, I don't understand your question. Why do you need "hold data" if you execute actions in background? And why do the users care about it? Why do you say "it_bdcdata is initial, and FB01 should be called blank", it looks non-sense!?

  • OK more background information.

    We have a program to validate invoices imported by a OCR System. In this program we have record sets with the invoice document attached. In some cases the users don't want to use our program to post the documents but want to use FB01. Therefore we offer a button that calls FB01 without any data filled but with the document as an attachment. That's how our customer demanded it.

    Now in case of customer invoices the user Always uses the same values in FB01 except of amount and reference number. All the other fields are Always the same and so he wants to use 'hold data' function so that he does not need to enter the same values again and again.

    But somehow this does not work when I call FB01 with CALL TRANSACTION.

    I hope I could make it clearer now.

Related questions

0 Answers

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.