on 06-30-2009 11:13 AM
Hi all,
I created one transaction in that iam calling one RFC.
The input parameters for that RFC are date, overall status and trasporting point.
overallstatus and trasporting point are option in RFC so no need to send the input for that fields.
but i need to send the input for date....but in RFC date filed is like structure i.e fromdate and todate are the inputs for it.
in transaction when i send the date as input its giving error as Invalid data error.
in SAp date format is in YYYYMMDD...........so how can i send it in this format from transaction to SAP.
Thanks and Regards,
Phani
Hi Phani,
Create two Transaction variables SDate and EDate of data type DateTime.
Then map these dates to the input of RFC as
datefromxmlformat(Transaction.SDate, "yyyyMMdd")
datefromxmlformat(Transaction.EDate, "yyyyMMdd")
That's all.
Regards
Khaleel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can format the date in expression window of the link editor. I hope the datetime is in xml format. Than you can use this.
datefromxmlformat(datetime, toformat)
for example
datefromxmlformat("2009-06-30T04:00:00", "YYYYMMDD") yields "20090630".
Regards,
Kishore
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Phani,
Please provide the RFC name (if it is a standard RFC). And have you tested the RFC using SE37 with various date formats?
Regards,
Mike
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
12 | |
6 | |
3 | |
2 | |
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.