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

Modify a Data Type in ABAP proxy

0 Likes
15,775

Hi

I am new in ABAP programming. I am trying to modify a structure of a data type in my Abap proxy.

My first try (in SAP ECC):

With SPROXY transaction, In Enterprise Services Browser, expand my namespace, expand data types, select and double-click the data type; doble click the proxy name; double click the desired component. If I click the "Change" Icon, I receive the message : "Type ZDT_INCOMINGINVOICE_ITEM is a generated proxy type (->Docu)". I tryed pushing "Proxy Editor" button, the result was the same.

My second try (in SAP PI):

From Enterprise Services Builder, finally modified the data type, adding a new element in the structure named "DT_INCOMINGINVOICE". After that, the change was activated.

Then, I moved to SAP ECC and accesed with the SPROXY transaction. As I didn't see the new element, right-clicked the data type named "DT_INCOMINGINVOICE" and selected "Regenerate Proxy".

The new element finally coud be seen in the "External View" and "Internal View" tab, but when I navigate thru the proxy name and the component, the new element does not appear. Just appear the Structure name, the short description and in the component tab, the same list of elements.

I appreciate your help.

PS: I have SAP 7.3

1 ACCEPTED SOLUTION
Read only

alejandro_mejias
Active Participant
0 Likes
7,689

Your second try should be correct. Each data type in ESR is mapped to a ABAP data type. The element should appear after generating the proxy. could you give more details about the definition in ESR and the result in ABAP? (some screenshots)

Best regards

5 REPLIES 5
Read only

former_member392866
Active Participant
0 Likes
7,689

Hi Arturo,

Need to adjust database - means go to SE11 and give the structure name which you added field to structure and go to change mode and go to utilities and go to data base object and go to data base utility and activate structure by click on Activate and adjust data base button.

Note : if you change any structure/table then you need to activate that structure by following above steps.

Hope this will give you some idea.  Thank you .

Regards,

Balaji.

Read only

0 Likes
7,689

Thanks Balaji

In ECC I go to SE11, type the structure name ZDT_INCOMINGINVOICE_ITEM (wich is a data type) and click "Change". In the next window the Components list appear, in the message bar  appears "Type ZDT_INCOMINGINVOICE_ITEM is a generated proxy type (->Docu)".

When I click this message, the recomendation is:

"Use transaction SPROXY or click the pushbutton Proxy Editor in the Dictionary object editor if you wish to process a generated proxy type."

In the utilities menu, I can't find the option "data base object", maybe because it is not a data base; it is a data type.

PS:

1. The structure description is "Proxy Structure (generated)"

2. I use SAP 7.3

Read only

0 Likes
7,689

A friend told me that a proxy generated by "proxy wizzard" cannot be modified. He recommended me to ensure that the modified data type is green colored and, besides, matchs with the interface.

I guess this proxy can be just regenerated. As I did it and the result is not what I need, I need some help.

From Enterprise Services Builder, I added a data element called "PO_PR_QNT" in the data type named "DT_INCOMINGINVOICE".

From ECC, with sproxy transaction, the DT_INCOMINGINVOICE data type is green colored.

From data type properties, click in the proxy name ZDT_INCOMINGINVOICE, which is the structure I want to be changed. If I move thru this proxy until the component, the data element I added does not appear. Thus, I cannot use it in the ABAP function.

However, I can see the new data element from the External View tab.

I appreciate any comment or suggestion

Best regards

Arturo Santos

Mexico

Read only

alejandro_mejias
Active Participant
0 Likes
7,690

Your second try should be correct. Each data type in ESR is mapped to a ABAP data type. The element should appear after generating the proxy. could you give more details about the definition in ESR and the result in ABAP? (some screenshots)

Best regards

Read only

0 Likes
7,689

Thank You, Alejandro.

The second try is correct. But, there is a step that I missed. It is to activate the proxy. After that, te change was updated into the structures.

Thank you, very much.