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

GGB0 - sum different position

Former Member
0 Likes
1,097

hi guru,

i need a validation on field dmbtr and gsber...

in all position in fb50 i have to calculate a sum for al dmbtr with egual gsber and if there is a only one sum <> 0 i have to launch an error message.

this is possible?

in wich mode i can solve this prolem?

there is a posizion validation o document validation?

in which mode i can write this validation in ZRGGBR000?

thanks for your answer!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
993

Try in GGB0>financial accounting>Complete document .

also read the rules there of document complite.

Amit.

Edited by: Amit Gujargoud on Aug 29, 2008 3:44 PM

hi guru,

i need a validation on field dmbtr and gsber...

in all position in fb50 i have to calculate a sum for al dmbtr with egual gsber and if there is a only one sum <> 0 i have to launch an error message.

this is possible?

in wich mode i can solve this prolem?

there is a posizion validation o document validation?

in which mode i can write this validation in ZRGGBR000?

thanks for your answer!

7 REPLIES 7
Read only

Former Member
0 Likes
994

Try in GGB0>financial accounting>Complete document .

also read the rules there of document complite.

Amit.

Edited by: Amit Gujargoud on Aug 29, 2008 3:44 PM

Read only

0 Likes
993

i have try it, but...

... i think is possibile only by exit!

but when I go with debug in the exit (ZRGGBR000) i don't have a complete bseg table where i can loop and add a dmbtr field to complete my control.

I suppose there is a bug in my mind you know in wich mode i can take a complete bseg table in the code?

thx

V.

Read only

0 Likes
993

as I told the exit has to be implemented on Complete Document level. If you see only one item, that means you implemented it on Line Item level, if you don't see any items, that means you implemented on Header level.

Read only

0 Likes
993

no no i have implment this in ggb0 --> Financial Accounting --> complete document

pre requisite TRUE

check Z012 (ZRGGBR000)

but in ZRGGBR000 there is only a structure where i see only one item!

i must implement all validation in ggb0 (not custom code in ZRGGBR000)?

thank for patience:-)

Read only

0 Likes
993

OK, you could also check if the internal table has different name (XBSEG?). if still doe not work than implement for substitution (tcode: GGB1), it has to work, I've done in the past as well.

Read only

0 Likes
993

there isn't a xbseg in validation code.

i must try this with sobstitution...

Read only

JozsefSzikszai
Active Contributor
0 Likes
993

it has to be done on complete document level (at header level, there are no positions yet, so nothing to calculate)