Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

R3 ISA ExtensionData

Former Member
0 Likes
422

Hello Everyone,

(I originally posted this message in the Java-forum, but I think its more of an ABAP-related problem).

I'm been tasked with creating ExtensionData in a BAPI. We're using SAP ISA R3 edition and I'm having a heck of a time trying to figure out what needs to be done. Can someone help explain this to me?

Can you tell me if there’s some ABAP work that I need to do to set the data? Here is the code I have so far:

BACKENDOBJECT-CONFIG.XML

<businessObject type="EXTENSION_DOCUMENT_CREATE" name="EXTENSION_DOCUMENT_CREATE" className="com.sapmarkets.isa.backend.r3base.ExtensionParameters" attributes="standalone">

<params>

<param name="structure" value="BAPE_VBAK"/>

<param name="structureItem" value="BAPE_VBAP"/>

<param name="fields" value=""/>

<param name="fieldsItem" value="ZCPHONE1,16"/>

</params>

</businessObject>

In my action class, I’m setting the data like this

item.addExtensionData("ZCPHONE1","555-1212");

Finally, in the ABAP table BAPE_VBAP, I create a new field like this:

ZCPHONE1 CHAR 16

Now, do I have to do some additional ABAP coding in my Z_SD_SALESDOCUMENT_CREATE (extended from the standard R3 BAPI "SD_SALESDOCUMENT_CREATE")? Basically, I want to retireve the extension data values after an order has been create. Right now, once I hit the sales order simulate, the extension data no longer exists.

Thank you for your help!

Hello Everyone,

(I originally posted this message in the Java-forum, but I think its more of an ABAP-related problem).

I'm been tasked with creating ExtensionData in a BAPI. We're using SAP ISA R3 edition and I'm having a heck of a time trying to figure out what needs to be done. Can someone help explain this to me?

Can you tell me if there’s some ABAP work that I need to do to set the data? Here is the code I have so far:

BACKENDOBJECT-CONFIG.XML

<businessObject type="EXTENSION_DOCUMENT_CREATE" name="EXTENSION_DOCUMENT_CREATE" className="com.sapmarkets.isa.backend.r3base.ExtensionParameters" attributes="standalone">

<params>

<param name="structure" value="BAPE_VBAK"/>

<param name="structureItem" value="BAPE_VBAP"/>

<param name="fields" value=""/>

<param name="fieldsItem" value="ZCPHONE1,16"/>

</params>

</businessObject>

In my action class, I’m setting the data like this

item.addExtensionData("ZCPHONE1","555-1212");

Finally, in the ABAP table BAPE_VBAP, I create a new field like this:

ZCPHONE1 CHAR 16

Now, do I have to do some additional ABAP coding in my Z_SD_SALESDOCUMENT_CREATE (extended from the standard R3 BAPI "SD_SALESDOCUMENT_CREATE")? Basically, I want to retireve the extension data values after an order has been create. Right now, once I hit the sales order simulate, the extension data no longer exists.

Thank you for your help!

1 REPLY 1
Read only

Former Member
0 Likes
391

Hi Jolly,

Were you able to do this?

If yes, can you help me with steps which you followed.

Thanks

Vinit