2008 Aug 29 2:29 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!
2008 Aug 29 2:38 PM
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!
2008 Aug 29 2:38 PM
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
2008 Sep 01 10:23 AM
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.
2008 Sep 01 12:18 PM
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.
2008 Sep 01 12:33 PM
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:-)
2008 Sep 01 12:35 PM
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.
2008 Sep 01 12:39 PM
there isn't a xbseg in validation code.
i must try this with sobstitution...
2008 Aug 29 2:41 PM
it has to be done on complete document level (at header level, there are no positions yet, so nothing to calculate)
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |