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

Cardinality Issue - WD Model (Form) Integration with BAPI

Hi -

We have an issue with our forms editable fields are getting disabled (read only, we can not enter data) even though we have proper properties set.

Our developers are looking into a possible cardinality issue i.e. our form fields are test field and have a cardinality of 0..1, where as our bapi structure is showing a cardinality of 0..n for the corresponding field in bapi.

We had internal table as an export parameter so we though may be because of that we are getting 0..n. However we have changed the internal table to a type of structure and recreated a model mapped all the controller and context nodes back to the new structure and still get 0..n cardinality.

We have already researched on SDN logs and did not find any relevant answers.

Any one have any idea please make our weekend happy 😉 Developers are really working hard on Friday to close on this before they go home.

Thanks

Shahid

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Mar 03, 2007 at 06:26 AM

    Hi Shahid,

    If the context node cardinality is 0...1 or 0...n then you need to first create or bind an element to the node to make the form fields editable to which those nodes are bound to. If it's a model node then you need to instantiate a new model node object and bind it to the node e.g.:

    Bapi_xxx_Input input = new Bapi_xxx_Input();

    wdContext.nodeBapi_xxx_Input().bind(input);

    Or if it's a value node then you need to instantiate the node element as below:

    wdContext.nodemyNode().addElement(wdContext.nodemyNode().createElement());

    Hope this helps.

    thanks,

    Dipankar

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      hi

      it is not a good practice to have structures in import/export parameters. Have it in the tables tab and fill in the only record from your test form fields onto the bapi table. It saves a lot of processing time.

      reg

      vln

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.