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

Error with BAPI inputfields in VC

Hello,

i try to create a new material in an ERP with a VC component. I use BAPI_MATERIAL_SAVEDATA.

When I create a Form for the Input of the BAPI with fields with 0...1 cardinality, i have to click "Enable" during execution to fill in values.

Without clicking it, the inputfields of the form are disabled. While they are disabled, the BAPI ist executed correctly (of course it gives a message "Fill in Material Number" because i haven't inserted values. But the Bapi is executed)!

When i enable the inputfields with the buttons added by VC ("enable/disable" on top of the form) this weird message comes when i submit the values to the BAPI:

Error Occurred while executing the service: while trying to invoke the method com.sapportals.connectors.SAPCFConnector.execution.structures.INativeJCOStructure.getJCOType() of an object loaded from local variable 'value'

Is this a Bug or is it me? what can I do?

PS: When i add fields with 1...1 cardinality, the fields are already enabled (without the buttons on top of the form) and the BAPI is executed.

Greetings, Oliver

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on May 04, 2011 at 08:45 AM

    It happens when i try to submit a value to a datafield inside a grouped datafield.

    e.g. Group/Port: HEADDATA -> Field (string): MATERIAL

    every datafield of the BAPI which not in a grouped field, works fine.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member pradeep bondla

      Hi Pradeep,

      thanks for your answer. There is no problem with the BAPI, it works fine in SE37 in the backendsystem.

      I pass data in VC by selecting the Port (HEADDATA) in "Define Prots" and checking the MATERIAL Field. Then i drag out a Form View, where I enter the data during runtime. It works fine wirh all fields without beeing in a set of records. When i test the BAPI with "Test Data Service" with creating a new record for MATERIAL, the BAPI is not executed. (so it doesn't work in designtime and runtime).

      I think this is a bug or because i'm using the evaluation version SP01. I think i have to update the whole CE and NWDS.

      Which version are you using pradeep?

      Greetings, Oliver

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.