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: 

Copy WA01 to ZWA01 or enhance WA01?

adrian_mejido
Contributor
0 Kudos

Hi,

I have a requirement which is to do those things:

- ADD a new Z column to the 0122 screen table-control and fill it with some data.

- Validate data of 0122 standard screen fields and trigger an error message if validations are not passed.

Which would be the best way to achieve that? Copy the transaction or with enhacements? I need some help about that, because I think that I can't achieve that use enhancements. Copying the transaction could help me, but I Would need to replace the 0122 screen by other one that I would have to create.

Thanks for your time.

Best regards.

1 ACCEPTED SOLUTION

Jelena
Active Contributor

"Best way" is to work with the business users and a functional expert to find the most appropriate solution within SAP best practices. You'll need to evaluate how the available user exits / BADI / enhancement points can be used to satisfy the business need. And "business need" here would be "we must enter X data for Y purpose", not "add Z-column".

Creating a copy of a standard transaction is not a solution unless you want to run ZSAP.

5 REPLIES 5

Jelena
Active Contributor

"Best way" is to work with the business users and a functional expert to find the most appropriate solution within SAP best practices. You'll need to evaluate how the available user exits / BADI / enhancement points can be used to satisfy the business need. And "business need" here would be "we must enter X data for Y purpose", not "add Z-column".

Creating a copy of a standard transaction is not a solution unless you want to run ZSAP.

Sandra_Rossi
Active Contributor

Agreed. Never copy (the reason is discussed in many threads; enhance or do a modification of the standard; for the latter, it's supported by system upgrade tools, while a Z copy won't be supported).

former_member186746
Active Contributor

Hi,

It is imperative that you first find out what the Business Requirement is. Your requirement is too much focused on the chosen development.

I've had cases where a client wanted me to add something to an SAP standard transaction screen which is used to change master data. After rejecting the requirement and communicating and trying to understand exactly what the need is, we found out that they just wanted a way to see information. The reason why they wanted it in the SAP standard transaction was because they were just used to the transaction. I think in the end I gave them a quick view which covered all of their needs.

Kind regards, Rob Dielemans

adrian_mejido
Contributor
0 Kudos

Thanks for your replies. But I would need to add a custom field at item level in allocation table. This Z field should be maintained by the end user in WA01 tx because when the SO or PO is created in the WA08 tx, I am going to use the value of this Z field to fill PO or SO data at the user-exits of PO/SO creation.

Any idea for that?

Best regards

adrian_mejido
Contributor
0 Kudos

I have just found out a badi to modify ALV data

WRF_X_AT_POOL_DISPL

Which is the ALV that it modifies? Could that badi help me for my achievement?

Another possibility could be to triguer a custom popul in wich the end-user would add the z data to aupo table. Any idea for that? Is there any badi or user-exit that could help me to populate the code for that?

Bests regards.