Skip to Content

How to pre fill forms with the result of two BAPIs and automatically ...

Hi SDN,

How can I pre fill a form with the result of two other forms and how can I automatically raise a submit in a form which is filled by the results of two other BAPIs?

E.g. I have executed two times the BAPI ISUFINDER.

The first BAPI returns a number of the businesspartner in the variable OBJKEY. The scond BAPI returns the ISUACCOUNT in the variable OBJKEY. How can I bring

them together so that these results fill the fields in the input form for a third BAPI, which is the input form for the third BAPI ACCOUNT GETBALANCES.

One OBJKEY is the PARTNER and another OBJKEY should be mapped to the field CONTRACTACCOUNT. Is there anyway to raise the submit automatically in the third input form.

Thanks very much.

Best Regards,

Olaf Reiss

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Dec 14, 2004 at 11:32 AM

    Hi Olaf,

    1. Sorry, for now you cannot join two forms or BAPI outputs, it is planned for a future release.

    2. To automatically submit a form's data to a BAPI you can change the name of the event (submit) to select. in order to do that you should right click on the connecting line between the form and the BAPI and select "Define Properties"-> change the name to "select". the event will be raised automatically.

    Regards,

    Lisi

    Add a comment
    10|10000 characters needed characters exceeded

    • Thanks Lisi,

      antoher question.

      When I use the select function, is there anyway to decide based on the output of the first BAPI if the next submit/select will be raised or not.

      E.g. I have a BAPI_BUPA_ADRESS_ADD. If the result of this BAPI is wrong, then the submit/select of the next BAPI should be not raised, because e.g. the entered address does not exist. But if the address does exist, then the BAPI returns a ADDRESSGUID (32 Charcter id code ==> so I know it is all ok) and the next submit/select should be raised.

      Is there anyway via the computing properties of the BAPI?

      Thanks,

      Sorry for my question bombing ;o)

      Best Regards,

      Olaf Reiss

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.