2008 Apr 02 11:59 AM
Hello Gurus,
I am getting an "data is not vaild" when I give date in the purchase date field of BAPI_SALESORDER_CREATEFROMDAT2.
I have tried with the following date formats
1. 01.04.2008
2. 01042008
3. 01-04-2008
4. 2008-04-01
5. 2008.04.01
6. 20080401
Every time I get the same error. What is format that SAP takes??
I have tried with 01.04.2008 and 01042008 these two were supported in SAP from SE37, but dont understand why it was not supported from webservice.
please help.
Thanks,
Suma
Hello Suma B,
Moderator message - Please see before posting
Regards,
José Gabriel.
Edited by: Rob Burbank on Nov 9, 2009 11:39 AM
2008 Apr 02 12:05 PM
2008 Apr 02 12:07 PM
Try This.
call function 'converstion_exit_idate_output'
exporting
input = sy-datum
importing
output = lcdate.
concatenate lcdate(2) lcdate2(3) lcdate5(4) into lcdate seperated by '/'.
Regards
2008 Apr 02 12:23 PM
Hello Rahaman,
Where do, I need to try that??
Try This.
call function 'converstion_exit_idate_output'
exporting
input = sy-datum
importing
output = lcdate.
concatenate lcdate(2) lcdate2(3) lcdate5(4) into lcdate seperated by '/'.
Thanks,
Suma
2008 Apr 02 12:42 PM
2008 Jun 24 9:11 AM
It's very kind of you to let us participate in your solution...
2008 Jun 24 9:21 AM
2009 Nov 09 4:33 PM
Hello Suma B,
Moderator message - Please see before posting
Regards,
José Gabriel.
Edited by: Rob Burbank on Nov 9, 2009 11:39 AM
2008 Apr 02 12:09 PM
Please find the detailed error as below:
- <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
- <soap-env:Body>
- <soap-env:Fault>
<faultcode>soap-env:Client</faultcode>
<faultstring xml:lang="en">Deserialisation failed</faultstring>
- <detail>
- <n0:SimpleTransformationFault xmlns:n0="http://www.sap.com/transformation-templates">
<MainName>/1BCDWB/WSS0080402060221531000</MainName>
<ProgName>/1BCDWB/WSS0080402060221531000</ProgName>
<Line>95</Line>
<Valid>X</Valid>
- <DeserialisationFault>
<DescriptionText>An error occurred when deserializing in the simple transformation program /1BCDWB/WSS0080402060221531000</DescriptionText>
<DescriptionDetailText>01.04.2008 is not a valid date</DescriptionDetailText>
<TreePosition />
<ClassName>CX_SY_CONVERSION_NO_DATE_TIME</ClassName>
</DeserialisationFault>
- <Caller>
<Class>CL_SRG_RFC_PROXY_CONTEXT</Class>
<Method>IF_SXML_PART~DECODE</Method>
<Positions>1</Positions>
</Caller>
</n0:SimpleTransformationFault>
</detail>
</soap-env:Fault>
</soap-env:Body>
</soap-env:Envelope>
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |