on 12-12-2014 12:10 PM
Hello All,
We are implementing the export controll for AGREX licence for export to switzerland.
In the customs document we have the following issue while completing the document and send to ATLAS.
I enter a number with the meassure KG to reduce the licence with the weight and add this customs document to the licence .
But I got the above message when I check the message!
Does anybody has an idea what I am doing wrong.
Thanks for help.
Regards,
Jörg
Hi Jörg,
The message is generally issued where the quantity represents the Number of Pieces or other such units where the authorities expect an integer value.
The program code compares the entered value with the TRUNC function of the value, and issues the error if they are different.
So value 3 would be ok, but value 3.1 (or even 3.0) would not be ok.
Hope that helps.
Regards,
Dave
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Jörg,
and in the coding you will find
*Es sind nur die Werte "l" (Liter) und "St" (Stück) zulässig, wenn das
*Datenfeld "WARE / UNTERLAGE / Typ" mit dem Wert "X001" (Ausfuhrlizenz
*AGREX) angegeben wird.
IF ( lv_doc_type(4) EQ 'X001' ).
IF ( ls_it_doc-papum_qu IS NOT INITIAL AND
ls_it_doc-papum_qu NE 'l' AND
ls_it_doc-papum_qu NE 'St' ).
MESSAGE e374 WITH lv_doc_type
is_it_keys-itvsy
INTO gv_dummy.
PERFORM applog_msg_n_it_add
USING is_it_keys
gc_tabcode-it_document_new
'PAPQU'
'/SAPSLL/CUHD_LOAD_0410_S-PAPQU'
gc_altext-standart.
CLEAR cv_consistent.
ENDIF.
ENDIF.
*Es sind nur ganzzahlige Werte erlaubt, wenn das Datenfeld "WARE /
*UNTERLAGE / Typ" mit dem Wert "X001" (Ausfuhrlizenz AGREX) angegeben
*wird. Anzuwenden ist das kaufmännische Rundungssystem.
IF ( lv_doc_type(4) EQ 'X001' ).
IF ( trunc( ls_it_doc-papqu ) NE ls_it_doc-papqu ).
MESSAGE e374 WITH lv_doc_type
is_it_keys-itvsy
INTO gv_dummy.
PERFORM applog_msg_n_it_add
USING is_it_keys
gc_tabcode-it_document_new
'PAPQU'
'/SAPSLL/CUHD_LOAD_0410_S-PAPQU'
gc_altext-standart.
CLEAR cv_consistent.
ENDIF.
ENDIF.
With TC SE91 and Message class /SAPSLL/CUS_ECC and Messages number you find the message
Item &2: Depreciation quantity for document &1 has incorrect format
Regards,
Thomas
Hello Jörg,
I would now do the following: in the functiongroup / SAPSLL / INCOMP_CHECK_DE (TC SE80) search for the routine FORM pdoc_ind_chk_21 and set a breakpoint to see what happens with ls_it_doc-papum_qu and ls_it_doc-papqu.
By the way,if you look in the coding , you find for the unit of measure test a 'l' and not ' L' and a ' St' and not 'ST'. GTS is always very sensitive when lowercase or greatercase description are in use.
Hope this helps.
Regards,
Thomas
User | Count |
---|---|
5 | |
5 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.