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: 

Use of Table is not permitted.

ratana_pouy
Participant
0 Kudos

hi expertist,


i am trying to implement BAdI IF_MM_PUR_S4_PR_CHECK~CHECK in GUI to validate purchase requisition type with plant. There is a new custom table was created:

i declare the field in BAdI, there is an error message:

"Use of Table YPRTOPLANT is not permitted."

Please give advice or instruction.

THanks,

RTN

3 REPLIES 3

venkateswaran_k
Active Contributor
0 Kudos

Hi ratana.pouy

You can declare as below

DATA : zwerks TYPE zwerks.

Because, you have used the same in YPROTOPLANT-WERKS.

So you can simply declare as above.

0 Kudos

thank!

even i declare like this; still error.

Use of Data Element ZWERKS is not permitted.


Please kindly advice.

raymond_giuseppi
Active Contributor
0 Kudos

Did you click on the [i] icon, is there a message related to package?

Did you already check the Repository Objects: Original System, Packages (properties, attributes such as transport layer)

  • of your BAdI implementing class
  • of the DDIC objects (table, type)

Are they compliant (ask your Basis Team)