Application Development 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: 

Addition of new fields to structure

Former Member
0 Kudos

Hi All

1)i want to add few fields to existing structure RFC_VIQMMA which is used in bapi - IQS4_CREATE_NOTIFICATION(I_VIQMMA_T).

I would like to know after addition of fields in structure, can I see that whenever I execute that bapi manually and populate values for those fields manually??

2)All these additional fields will be optional fields for that structure. Whether it will affect other programs which is already using that structure??what precautions should i take?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

1) After extending your structure, any variable that references this structure will have all the extended fields.

Are you expecting to add these values to QMMA table?

If yes, you may have to extended the QMMA table too.

Unless these values new fields are populated with proper values they will not updte the databse table.

2) There is no issue with other programs that references this structure.

Hope this explanation helps.

Regards,

Subramanian

6 REPLIES 6

Former Member
0 Kudos

Hi Yogesh,

If you are having them added at the end of your structure, i dont see any problem, if if that bapi is being used else where.

But make sure, this structure is not being used in any of your programs. If used, your local itab or work area structure would also change accordingly and u may have to handle there for those fields.

Thanks,

Kiran

0 Kudos

Hi Kiran, thanks for reply. I am not sure what you want tosay in your second sentence and that is what my 2nd question is.

This structure is already used in other programs. What will be effect on that programs if i add new fields in that structure.

Former Member
0 Kudos

Hi,

1) After extending your structure, any variable that references this structure will have all the extended fields.

Are you expecting to add these values to QMMA table?

If yes, you may have to extended the QMMA table too.

Unless these values new fields are populated with proper values they will not updte the databse table.

2) There is no issue with other programs that references this structure.

Hope this explanation helps.

Regards,

Subramanian

0 Kudos

Thanks Subramanian.

I am extending this structure and including fields material, quantity, rate, UOM, amount . All these fields are already part of table QMMA. so no need to extend table. The new field in structure will be used to populate field in table QMMA.

0 Kudos

If u have this structure used in ur ALV's internal table, that could be a problem.

because, those fields would show up and u will not have logic to populate them.

Those are the kinds of issues you will face, if you used this structure in your programs.

Other than that, you should be fine.

Thanks,

Kiran

0 Kudos

Ok thanks. I have now appended field to structure RFC_VIQMMA.

The new field name is MATERIAL in structure RFC_VIQMMA. This is correspond to field MATERIAL in table QMMA.

But when I activate structure , it gives follwoing warning :

Table is not yet classified

Field MATERIAL does not lie within customer namespace

I know this warning is because new field name MATERIAL was not started with ZZ. if I mention new field in sturcture as ZZMATERIAL. Then will not be any problem. but then it is not correspond to field in table QMMA.

Can I keep new field name as MATERIAL? Is there any probelm while moving transport from development to test and then production environment?