Skip to Content
author's profile photo Former Member
Former Member

BAPI call from Java

Hi all,

I'm trying to execute a BAPI from Java called "BAPI_SERVICENOTIFICAT_CREATE".

It creates a Service Notification for a functional location.

This BAPI WORKS WELL if I execute it from SAP (trans. SE37), but it gives me an error message I think it's incorrect.

" E020 Functional location PROM-DIA does not exist"

The import parameters (from Java and from SAP) are:

Structure "NOTIF_HEADER":

Field NOTIF_TYPE: "S1"

Field FUNCLOC: "PROM-DIA" (Of course, IT EXISTS...)

Field CONTACT: "0000000000"

Field DESCRIPT: "Do it from Java"

Any ideas?



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 09, 2003 at 06:11 PM


    Seems like you are not setting the proper values in the BAPI, you cpould do onething, take out each and every data you set it in the BAPI and take these valid values and compare it with the ones you are passing to your JCO.Function.

    JCO.Function has a method writeToHTML or writeHTML(file name), before executing the function put this statement and after executing also put this statement




    See the returnerd values in both the cases and compare it with your valid values.

    Seems like BAPI is getting executed properly there is a problem in setting the values.



    Add a comment
    10|10000 characters needed characters exceeded

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.