on 05-21-2013 9:50 PM
When configuring the link to an object (EBAN) of a document type we set the option “Create Document” to " 1-Create simple document".
The document type has ”Number Assgmt” set to ” 4-Only external number assignment with Exit”.
When I try to create a document of this type for the first time from the ME52N transaction, after the popup where you enter the external number of the document, the system displays the message S4 110 "Specify existing value".
This occurs in POPUP_GET_VALUES_DB_CHECKED utility function module that is called from the function module CV140_DOC_CHECK_NUMBER of function group CV140 ( SAPLCV140, include LCV140U01).
This function module POPUP_GET_VALUES_DB_CHECKED allows the user to enter values on the screen, and optionally, the verification of these values against database tables data.
It is used here for the user to enter the external number of the document he wants to create.
And in this case, based on the values passed in its parameters, the function checks if there is a record in the table DRAW that meets thefollowing condition: the document type matches the entered document type and the document number is different from the entered document number. It executes at some point in code a dynamic select of the type:
Select single *
from draw
into ls_draw
where dokar eq
If this access retrieve a record, the program continues and allows the creation of the document info record.
If this access does not retrieve a record, the program displays the message S4 110 "Specify existing value" and returns to the previous popup window to enter again or correct the document number to be created.
It seems that it makes no sense to do this verification, and forces you to create at least one dummy document of each document type in order to operate normally thereafter.
Does anyone know if this is the correct behavior or the behavior is wrong and is there some sap note to correct it?
Thank you very much for your help.
Regards,
Natalia
I did not copy the whole select, here it goes:
Select single *
from draw
into ls_draw
where dokar eq <document type selected> and
doknr ne <external document number entered>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
9 | |
9 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.