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

BAPI_PRODCAT_SAVEHEADREPLICA

Former Member
0 Likes
558

Has anyone gotten BAPI_PRODCAT_SAVEHEADREPLICA to work in a custom batch program outside of ALE? I can't see how this baby can possibly function.

I'm writing a program to create and populate new product catalogs based on some criteria. I've successfully used BAPI_PRODCAT_SAVEITEMSREPLICA in the past to populate EXISTING catalog nodes (areas) but now I need to create the layout and areas programmatically from a selection screen.

If you're using the bapi and creating a new product catalog you have to populate for example, bapi input tables AREAS, AREANAMES and there corresponding "X" tables. But those area numbers in the structure are brand new and the bapi tries to validate them against table TWGLV. But the areas (database field TWGLV-SORTF) don't exist yet. I'm trying to create new nodes!

2 REPLIES 2
Read only

Former Member
0 Likes
506

Hi Len,

Did you get the solution? If so please share the same. Am too stuck up in the same situation.

Thanks,

Ram

Read only

0 Likes
506

Ram

I have not been able to resolve this issue.

For now, I'm manually creationg the catalog via tcode WWM1 and then populating the nodes via a program with the item bapi.

If you find a solution please let me know.

Thanks

Len