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

WBS_USER_FIELDS_F4 ..how to code

Former Member
0 Likes
4,550

hi experts,

how to code inside WBS_USER_FIELDS_F4..i already did the implementation. I need to do a search help for field PRPS-USR03.. pls advice..thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,941

Hi

Please refer note 848866,which provides a badi WBS_USER_FIELDS_F4,where customer can create his own match codes for user fields on WBS

Regards

Sudheer

Hi

Please refer note 848866,which provides a badi WBS_USER_FIELDS_F4,where customer can create his own match codes for user fields on WBS

Regards

Sudheer

6 REPLIES 6
Read only

Former Member
0 Likes
2,942

Hi

Please refer note 848866,which provides a badi WBS_USER_FIELDS_F4,where customer can create his own match codes for user fields on WBS

Regards

Sudheer

Read only

0 Likes
2,941

Dear Sudheer,

The note is to fix the badi which causes error in earlier version before 4.7C.

I have coded inside the BADI :

E_VALUE = 'testinggg123'.

When I click on F4 at Proj Cat (USR03) field, the search help did returned the value of 'testinggg123', means the BADI works .

But if I click F4 on other fields: USR00-USR02 , the value 'testinggg123' is also returned to the screen ,means the BADI doesn't work as I wanted coz I just want the search help work for field USR03.

Pls advice on how to code the BADI so it will return search value for field USR03 only.

thanks

Message was edited by:

ester johannes

Read only

Former Member
0 Likes
2,941

Oss Notes - 699400

The following parameters are transferred:

I_PROJECTDEFINITION Project defintion

I_WBS_ELEMENT WBS element

I_USER_FIELD Name of the current user field, for example PRPS-USR00

In E_VALUE, the value determined in the customer-specific F4 help is returned. The corresponding user field is only changed if its field is ready for input on the screen. The longest user field has 20 characters. As a result, E_VALUE is also type CHAR 20. However, you should bear in mind that there are also shorter user fields and correspondingly shorter return strings must be returned in E_VALUE.

Bear in mind that only SPACE or 'X' as a return value make sense in the check boxes (USR10 and USR11).

1. BAdI WBS_USER_FIELDS_F4

Using SE18, create definition WBS_USER_FIELDS_F4

Short text: Customer-specific F4 help for user fields in the project

In the 'Type' frame, initalize the 'Multiple use' checkbox

Development class or Package CJBADI

'Interface' tab page

Double-click on 'IF_EX_WBS_USER_FIELDS_F4'

Create method AT_F4, Short text: 'F4 help for user field'

Create the following parameters for this method:

Parameter Type PassVal. Opt. Typ.Meth. Ass.Type Opt Typ

I_proj Importing Type PROJ

I_prps Importing Type PRPS

I_USER_FIELD Importing Type DD03D-FIELDNAME

E_VALUE Exporting Type PRPS-USR00

Activate the interface.

2. Using SE38, create Includes LCONWI3Y and LCONWF31, both are type 'I' (Include)

3. Using SE51, change the flow logic for screen SAPLCJWB/1460 as described in the attached program corrections and activate the screen

4. Implement the attached program corrections

5. Using Transaction SE19, implement the customer-specific contents of the method

Read only

0 Likes
2,941

Hi all,

i need to know how to code inside the BADI..now how to fix the BADI coz for 4.7 the definition already exists.

Read only

0 Likes
2,941

i solved this badi..now can use already

CHECK i_user_field = 'PRPS-USR03'.

e_value = 'testinggg123'.

Read only

0 Likes
2,941

Can you please post your code ? I'm getting a runtime error calling

CALL METHOD lo_F4->AT_F4(
EXPORTING
I_PROJ = ld_I_PROJ
I_PRPS = ld_I_PRPS
I_USER_FIELD = ld_I_USER_FIELD
IMPORTING
E_VALUE = ld_E_VALUE ).

thank you