cancel
Showing results for 
Search instead for 
Did you mean: 

Modification for popup error at document level.

0 Kudos

Dear Experts,


help with this what to do exactly and where? And what is the use of exit 'U101'


when user clicks on “Post” button for the FI document then exit:

  • Looks for vendor account line in the document:
  • If yes, check if vendor is submitted to withholding tax:
  • LFBW- WT_SUBJCT= X
  • If yes, check that BSEG-QSSHB is <> 0
  • If yes result = TRUE
  • Else result = FALSE
  • And then it must trigger the validation message ZFI007.

Accepted Solutions (1)

Accepted Solutions (1)

former_member182098
Active Contributor
0 Kudos

In your system, validations are written through user exits.

Validations are something check the user entries.

Check GGB0 and OB28 for validations

Check GGB1 and OBBH for substitutions.

0 Kudos

Dear Ravi,

Thanks Ravi for the information provided..But my question is :

Currently there is a validation rule applied at line item level regarding the withholding tax amount booking. This validation enables to check that withholding tax amount has been entered in the relevant fields, when the vendor is submitted to withholding tax.

The posting of accounting document with multiple line items is disturbing because at the end of each line a pop up is triggered by the current validation check.

Therefore, in order to ease the posting entries, the validation is to be moved from “Line item” to “Complete document” level.

The validation prerequisite must remain the same and also the error message displayed.

  How could i achieve this.

Thanks,

Darshan.

former_member182098
Active Contributor
0 Kudos

You cannot move a validation from line item to complete document.

You need to recreate a new validation in complete document in GGB0 and assign them in OB28.

Even if you have created a same validation at "completed document" level I do NOT think there would be any difference in the behaviour of the validation. Meaning that even if you create at complete document level, still it gets triggered at the end of the each line.

0 Kudos

Yes Ravi got it...but for this i need to create a one exit in ZRGGBR000 and the requirement is


when user clicks on “Post” button for the FI document then exit:

  • Looks for vendor account line in the document:
  • If yes, check if vendor is submitted to withholding tax:
  • LFBW- WT_SUBJCT= X
  • If yes, check that BSEG-QSSHB is <> 0
  • If yes result = TRUE
  • Else result = FALSE
  • And then it must trigger the validation message ZFI007.

How can i write the code for this requirement which shold trigger at document level. And i have read somewhere that can adopt for this callpoint 3 exit- 'U101'

Thanks,

Darshan.

former_member182098
Active Contributor
0 Kudos

Sorry Darshan, I may not be able to help in writing code.

Please check with your ABAPer.

0 Kudos

Thanks Ravi 🙂

Answers (0)