cancel
Showing results for 
Search instead for 
Did you mean: 

Validation for network header – we get data from AFVGD instead from CAUFVD

former_member1139057
Participant
0 Kudos

Hi’

We try to create a validation when saving network header.

The validation should check values for Profit center at WBS element and Project definition.
(We know the logic and the tables to check, but we need to have the network number/ID to create the check).

We goto OPSI and create new exit in ZGGBR000

Data available are from structure AFVGD and not view CAUFVD.

The check seems to be done same number of times as networks in the project, but the data available are from the activity.

How do we do the coding to get data from the network header?

Thank you very much in advance for input

BR
Lone

Accepted Solutions (1)

Accepted Solutions (1)

former_member1139057
Participant
0 Kudos

Hi' again

I have found a solution.

I added CAUFVD as a Dictionary Structure in ZGGBR00 and voila - the data was available

Regards

Lone

Answers (2)

Answers (2)

former_member210872
Participant
0 Kudos

Hi,

Do you want your project definition and WBS profit center should same? .

If yes, which level of WBS should be check against project definition profit center.

eg.

If my WBS level is 1 then project def. profit center is equal to WBs profit center

Validation

Prerequisite

                                   PRPS-STUFE = '1'

Check

                                  PROJ-PRCTR = PRPS-PRCTR

Message

                                   Your WBS profit center is not same as Proj Profit center

Dnyanesh

former_member1139057
Participant
0 Kudos

Hi'

Im sorry the problem is unclear.

In the exit for validation at network header we know how to make the coding needed for the profitcenter-check - BUT it is the wrong data we have available in the exit.

To make the check we need to take the network number for data available when the validation is performed.

When we put a break point for debugging to check the data available, they are from structure AFVGD and not view CAUFVD.

If you make a validation without exit, then for network header you can pick data from structure CAUFVD.

If you make a validation without exit for network ACTIVITY you can pick data from structure AFVGD.

When we make the exit for network header, we can pick data from AFVGD and not CAUFVD.

The strange thing is, that debugging shows that the exit are executed the same number of times as network in the project, not the number of times as activities in the project.

What do we have to do to have the structure CAUFVD available for the exit?

Thank you in advance.

Best regards

Lone

varshal_kachole3
Active Contributor
0 Kudos

Hi,

Sorry, but the requirement is unclear.

Can you elaborate on this please?

Thanks and Regards,

Varshal Kachole