Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Method in object type

Former Member
0 Likes
1,011

How to create a method in an object type through TCODE SWO1, when we use this method in the workflow, a window will pop up to let us input some data?

If anyone knows, would you please tell me, thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
980

if its just a Z- business object you can just open the object in SWO1 and click create on the method to create a method,

inside that method try using FM POPUPGETONEVALUE FM.(use F4 on this FM as i am not sure about the exact name)

8 REPLIES 8
Read only

Former Member
0 Likes
981

if its just a Z- business object you can just open the object in SWO1 and click create on the method to create a method,

inside that method try using FM POPUPGETONEVALUE FM.(use F4 on this FM as i am not sure about the exact name)

Read only

0 Likes
980

Yeah, I am using this kind of FM, but there is one question, the seach help for the input field should be changed depend on several conditions. How should I do?

Read only

0 Likes
980

Hi, I had the same situation for one of my workflow

What i did was, I have copied (you need to follow some rules - search forum) the business object to Z*** then i have created a function module in which i have developed a screen and required logic for my use then i have called this function module in the method that i have created in BO (Z**) .

When you create a method, you need to choose function module and then enter your newly created function module.

The code will automatically be generated for you but you need to change it to handle the errors (if it is not already there . sorry i forgot its been long time).

Before creating method, you need to create parameters and exceptions.... Handle these exceptions in your workflow

Let me know if you need more help

Read only

0 Likes
980

Thanks for your relpy. Now my new problem is that the search help drop down list will be changed depended on some data. How can we do this?

Read only

0 Likes
980

If it is a standard search help field, this can automatically be done by SAP else you need to define it

Write it more clearly like which field you are trying to use and what kind of criteria you have to use search help?

Basically, you will be creating a screen inside the FM so you can also have a process on value request event to create your own search help

Read only

0 Likes
980

Why don't you select the data and pass it to REUSE_ALV_POPUP_TO_SELECT?

Read only

0 Likes
980

Thanks for your reply.

But I think pop up a dialog to let user to input a field and if click the search help button, if we select one, the value will return to the input field.

If use FM reuse_alv_popup_to_select, only a list will pup up. No dialog to let user to input the value.

.

Read only

0 Likes
980

Did you get your answer for your post? If yes, please close the thread