cancel
Showing results for 
Search instead for 
Did you mean: 

Change date format & Fill automatically portal user ID ?

Former Member
0 Kudos

Hello,

I have imported a Module to Visual Composer from a backend system. I have 4 input parameter's. Two of them are of type date.

1] When ever I am entering a date in mm/dd/yyyy format, it is automatically getting converted into mm.dd.yyyy while executing & My backend function module is not responding to this date format & is not able to fetch data. I would like to change the date format to mm/dd/yyyy while supplying as a input to backend Function Module,irrespective of user input.

2]I have a input field as userID,my requirement is to fill it automatically with the portal UserID,through which user has logged in.

Does any one have idea about it?

Regards,

Sunil Kulkarni

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

In VC there is a tool called Expresion Editor. There in Formatting cell of your date input field you can apply function DSTR(d,mask) that returns formatted string representation of given date object.

I think you can use it with mask 'mm/dd/yyyy'.

BR/ marek

Former Member
0 Kudos

Hello Marek,

Thanks for taking time & replying.

Yahh..that works, perfectly fine..

Infact the information provided by Ignacio is also quite useful.

Thanks Ignacio.

Do you have any idea about how to capture the portal user ID in a particular field?

Thanks & Regards

Sunil Kulkarni

former_member188977
Contributor
0 Kudos

mmm no in VC... you should use the Developer Studio for this... or Form Builder if you want to work with KM.

Regards.

Former Member
0 Kudos

Hello Ignacio,

Thanks....

I want to pass a the "Portal user ID" as a input to a Function Module in CRM to get the relevant data from FM.

I do agree developer studio is a good option, but it involves lot of customized coding.

Well Thanks once again...

Regards

Sunil Kulkarni

former_member188977
Contributor
0 Kudos

Hi Sunil,

1) You ca use the dynamic expresion editor

http://help.sap.com/saphelp_nw04/helpdata/en/7d/6aa340fa432b54e10000000a1550b0/content.htm

2) You can use the USER_GET_NAME function in R/3 backend System as input.

Regards.

Former Member
0 Kudos

Sunil

I have the same problem. Do you have any solutions?

Thanks in advance

Patricio