cancel
Showing results for 
Search instead for 
Did you mean: 

Missing method container element for binding object method

Former Member
0 Kudos

Hi,

I modified a custom function module of a standard task method to export a concatenation of po items by adding an export parameter and the logic. The function works ok as tested. When I try to do the method binding I don't see the element in the method container, yet I do see the other elements which are the other function parameters. Even though I select the yes button when prompted to transfer missing elements from the object method, the missing element never shows up in the method container. I also tried the enter missing export parameter and generate automatic binding options but nothing works. Everything is activated. Please advise.

Thanks,

John

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Go to PFTC enter the task name and click change button. In the task container create another container of the same type with the same name as the one you have added in your function module and make it importing as well exporting. check the check box 'synchronous method' and click the binding button. Now generate or manually add the parameters.

one more thing you said you have added a parameter in your function module of the method. I hope you added the same exporting parameter in your method as well.

Hope this will solve your problem.

Regards

Anik

Former Member
0 Kudos

Anik,

Hi. Thanks for your reply. How do I add the same exporting parameter in my method?

John

bpawanchand
Active Contributor
0 Kudos

Hi

In any container if you want to create a container element folow the below steps

1. Execute PFTC transaction and choose the task type and mention the task ID.

2. open in change mode and click on the container

3. In the container in the first line you will see a create a Icon click it and name the container with its type now on the same screen you will find a properties tab click it and enable the check boxes.Import and export based on your requirement.

4. Now define the binding from task container to BOR method container In your case you need to define between the new container element.

Regards

Pavan

Former Member
0 Kudos

Hi John,

Go to SWO1, enter your ZBOR cliick on change and then click on your method and then on Parameter icon at the top of the screen. You can add your Additional Import/Export parameters here and then sue the below statements in your method.

1. SWC_GET_TABLE CONTAINER 'PARAMETER NAME' LOCAL_VARIABLE -> to get the value of parameter into the BOR Method.

2. SWC_SET_TABLE CONTAINER 'PARAMETER NAME' LOCAL_VARIABLE -> to set the value to the export parameter of the BOR method.

Regards,

Devananda A J

Former Member
0 Kudos

Hi John

After adding these exporting parameter they will be available for binding to the containers of the Task. So if the binding is not generated automatically in the task, add this as containers in your task and then bind them.

Regards

Anik

Former Member
0 Kudos

Devananda,

Thank you! Your reply solved my problem. I have awarded points.

Thanks to everyone else for your replies.

Best regards,

John

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Try activating your BO again, that may help you...

Check whether the BO method using this function module is showing your new parameter...

Regards

Gautam