‎2007 Aug 28 11:04 AM
Hi all,
basic type: delvry01
msgtype: DESADV
fm:IDOC_INPUT_DESADV1
inbound
in the inbound function module idoc_input_desadv1, there is one more fm TIME_CHECK_PLAUSIBILITY is checking the time format (in segment-E1EDT13 feild NTENZ)
when the time is 012345 it's not giving any error and getting posted!
but when the time is 0123 it's giving error like
Application document not posted Time 01:23: contains invalid characters
How can i skip this time format test.
Is it right way to go for user exit to populate right format data in to the segment.
if so pls can suggest code and exit.
-->suggest me if u have already encountered suvh errors
‎2007 Aug 28 11:15 AM
Hi,
Let me tell one thing that- r u passing the time value or system itself taking the time value for perticular field which process idoc.
suppose if u passing the value, you should pass the value in that forlmat :HHMMSS.
let me give your problem with clear explanation.
Regards,
Vijay
‎2007 Aug 28 11:15 AM
Hi,
Let me tell one thing that- r u passing the time value or system itself taking the time value for perticular field which process idoc.
suppose if u passing the value, you should pass the value in that forlmat :HHMMSS.
let me give your problem with clear explanation.
Regards,
Vijay
‎2007 Aug 28 11:25 AM
if i give hhmmss in reprocess it's going well.
system is talking actually.
i think this check is made in note: 0000947083 Time format not checked in DESADV (DELVRY03)
I want to move this check! or i wanto modify idoc b4 the check.
suggest me
‎2007 Aug 28 12:03 PM
Hi,
i have doubt regardomg you r telling that when u give time its processing well, but sys taking actually.
Tell me one thing r you seding the time to idoc or sys taking the time. if sys taking the time, then how u have been giving the time.
if suppose sys should pass the time value, you need to check itout what the type of the field that sys passes is char 6 or char 4.
if it is char 4 then you have to write user exit to pass time value perfectly.
still i am not getting exactly who will send the time file or sys.
reward with points if helpful.
Regards,
Vijay
9886869625
‎2007 Aug 28 12:07 PM
Hi,
If time in Idoc(Receiving) u r getting is char 4 you, you need to modify the data into the idoc as a char 6(hhmmss).
Regards,
Vijay
‎2007 Aug 28 12:14 PM
hi vijay
thanks alot, for your fast response.
actually system is passing the time and everythig...when i have checked it in we02, the idoc is in error(51) and showing the above error.
the i went to we19 and edit the idoc by giving time 12:34:00 --00 i have added to the time..and reprocessed the idoc was successful.
plz can you suggest now..which exit and how to write the belo code
if TIME has hh:mm
populate has hh:mm:00 (i want to populate 00)
endif.
is there anything can do basis people???
‎2007 Aug 28 12:29 PM
Hi,
Welcome your wishes.
as you know in inbound inerface data can get in the form of IDOC or file format.
and one more quest..... r u getting data from Sap server or Legacy syst?
let you make sure with functional guys whether time in idoc/file contain char4 or char6.
if functinal guy say - then can send in any format then you need to develop user exit.
first conform with functinal guy, bec while write a code in user exit we need to find exact user exit.
Regards,
Vijay
‎2007 Aug 28 12:42 PM
Hi vijay,
let me tel you something. actually what happened is here they applied support packs on 1st-aug.
b4 the upgradation there was no check for time format. Even I have checked the Idocs which were created b4 first they were sucsess and has time 12:34 format.
I think they are not caring about it. after support packs snote:0000947083, the time format check is added!
So i have decided to write exit:) how to check the time format and populate it as hh:mm:ss
plz suggest.
we are getting these Idocs from EDI...
‎2007 Aug 28 1:05 PM
Hi Tuborg...
You can use the Enhancement V55K0004.
In this you have a FM exit EXIT_SAPLV55K_004 to enhance the DESADV Idoc..
You can find the Include below.
I have given the Sample code also....Use debugging to check whether this is called
Hope it solves ur problem...
Let me know in case of issues.
&----
*& Include ZXTRKU12
&----
DATA : WA_E1EDT13 TYPE E1EDT13.
DATA :V_LEN TYPE I.
LOOP AT IDOC_DATA WHERE SEGNAM = 'E1EDT13'.
MOVE IDOC_DATA-SDATA TO WA_E1EDT13.
V_LEN = STRLEN( WA_E1EDT13-NTENZ ).
CONDENSE WA_E1EDT13-NTENZ.
IF V_LEN = 4.
WA_E1EDT13-NTENZ+4(2) = '00'.
ENDIF.
MOVE WA_E1EDT13-NTENZ TO IDOC_DATA-SDATA.
MODIFY IDOC_DATA.
ENDLOOP.
<b>reward if Helpful</b>
‎2007 Aug 28 1:16 PM