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

automatically assign measuring point while saving the work order

Former Member
0 Likes
585

Hello All,

My requirement is automatically assign measuring point while saving the work order in IW31.

Is there is any BADI or Exit available ?

3 REPLIES 3
Read only

Rodrigo-Giner
Active Contributor
0 Likes
540

Hi Kalpesh,

Yes, use the BADI WORKORDER_UPDATE it has 2 method AT_SAVE and IN_UPDATE in one of them you could set a value before saving.

Regards

Read only

0 Likes
540

Hello Rodrigo Ariel Giner de la Vega,

thanks for quick responce.

In BADI WORKORDER_UPDATE PRT allocation table contain routing number of operation and it's item, so we can not identify which measuring point number is in the operation.

in PRT allocation table there is no provision to create PRT using measuring point.

please help on same.

regards,

Kalpesh

Read only

0 Likes
540

It's not the best approach but it could work.

If you declare a Field Symbol and assing the pointer to a (Program)Table/variable you can access the values.

In the following example I get the values of table JEST_BUF of the program SAPLBSVA

(SAPLBSVA)JEST_BUF

types: begin of t_jest.

  include structure jest_upd.

types:

  mod,

  inact_old like jest-inact,

  end of t_jest.

data:

  lf_text(40) type c,

  lt_jest type standard table of t_jest.

field-symbols:  <ls_jest_buf> type any table.

lf_text = '(SAPLBSVA)JEST_BUF[]'.

assign (lf_text) to <ls_jest_buf>.

check sy-subrc = 0.

lt_jest[] = <ls_jest_buf>. "now everything is in lt_jest !

So find out in wich program and table you need the info so you can access them without having the parameter available.

Regards