cancel
Showing results for 
Search instead for 
Did you mean: 

VC iView input field parameter didn't pass to RFC function.

NickSYYang
Active Participant
0 Kudos

Hi, ALL:

I create a simple VC iView project for testing a RFC function. This RFC function need 3 parameters, first parameter data type is Date, second and third parameter data type is Time. I enter '08.07.2007', '21:00:00', and '22:00:00' for these three parameters on the input form. But I see the message output at runtime debugging console, second and third parameter value is empty.

Any advice would be very appreciated.

Debugging console message:

21: [AADL7] executeNext([STEP3])

20: [AADL7] Sent request: <Request type="executeFunction" function="Z_PR_DOC" system="Advantech236" systemType="SAPFactory" manageConnection="Y" encode="Y" commit="N" convert="N" dsmid="NICKYANG:com.myComp.myProduct.L7.Test_iview.par:1186650680109"><Input name="INPUT" shape="OBJ" appName="INPUT" ><Meta><field name="P_DATUM" appName="P_DATUM" type="date"/><field name="UZEIT_FROM" appName="UZEIT_FROM" type="time"/><field name="UZEIT_TO" appName="UZEIT_TO" type="time"/></Meta><b><Row P_DATUM="07.08.2007" UZEIT_FROM="" UZEIT_TO=""/></b></Input><Output name="ZBANFN" appName="OUTPUT___sp___ZBANFN" shape="SET" capacity="0"></Output><Output name="ZUSAGE" appName="OUTPUT___sp___ZUSAGE" shape="SET" capacity="0"></Output><Output name="RETURN" shape="ROW" capacity="1"/></Request>

19: [AADL7] checkStep([STEP3])

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Did you assign the value to pass it in the RFC? Check also the values which are passed in the RFC via external debugging.

Best Regards,

Marcel

NickSYYang
Active Participant
0 Kudos

Hi, Marcel:

I finally realize what cause this problem. The input parameter structure is UZEIT in the R3 RFC function. So when I pass hh:mm:ss to the RFC function in the VC, parameter value always blank. I found another post ask same question on the forum.

I think I should rewrite this program with Web Dynpro maybe.

Or you can give me other suggestion? Thanks a lot.

Former Member
0 Kudos

Hi Nick,

this is a typical problem of VC. I can suggest you to pass the time from VC as a string to a string input parameter, then use an ABAP Coding to convert the time in the correct format. i think this will be faster then develop the complete application in Webdynpro.

Best Regards,

Marcel

Answers (1)

Answers (1)

former_member209575
Contributor
0 Kudos

hi Nick

check the configurations of the output feild whether it's visibility is disabled or not

regards

Pradeep P N

NickSYYang
Active Participant
0 Kudos

Hi, Pradeep:

Thanks for your reply. The visiblity of all output field are set to true. Could any other possible cause this problem? Please give advice, thanks.