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

Create allocation table by WAUF_ALLOCATION_TABLE_CREATE

Former Member
0 Likes
1,052

Hi,

I try to write a program which included WAUF_ALLOCATION_TABLE_CREATE to create allocation table.

     CALL FUNCTION 'WAUF_ALLOCATION_TABLE_CREATE'

     EXPORTING

       im_ex_auko = s_im_auko        " rw00a

     TABLES

       im_ex_aufg = t_aufg                " rw03a

       im_ex_aufi = t_aufi                  " rw04a

       im_ex_aulw = t_aulw               " rw14a

       im_ex_aupo = t_aupo              " rw01a

       im_ex_ausb = t_ausb              " rw15a

       im_ex_auvz = t_auvz               " rw11a

       im_ex_auvw = t_auvw              " rw13a

       im_ex_auvt = t_auvt                " rw16a

       .

My program is used to fill in s_im_auko and those tables.

The function module execute successfully and I can see a new allocation table with content filled in through WA02.

However, a error message comes out in WA02.

"A serious error occurred"

"Site status could not be determined; alloc. table inconsistent"


Please help. What can I do?

Kit

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
801

I solved the problem. Thank you David.

In the table RW15A, the following fields should be set to be '1'.

     "Table RW15A - AUSB


     ausb_line-ABFST = '1'.                      "Status site notification

     ausb_line-ABAST = '1'.                      "Details status, site notification

     ausb_line-UMLST = '1'.                      "Status: warehouse order generation

3 REPLIES 3
Read only

former_member235395
Contributor
0 Likes
801

Hi Kit,

What is the message Class and number?

Regards,

Read only

Former Member
0 Likes
802

I solved the problem. Thank you David.

In the table RW15A, the following fields should be set to be '1'.

     "Table RW15A - AUSB


     ausb_line-ABFST = '1'.                      "Status site notification

     ausb_line-ABAST = '1'.                      "Details status, site notification

     ausb_line-UMLST = '1'.                      "Status: warehouse order generation

Read only

Former Member
0 Likes
801

Hi kit

     I would like to know ,how to use WAUF_ALLOCATION_TABLE_CREATE.

     Please explain me about your data for send to table of function.

Thank you