cancel
Showing results for 
Search instead for 
Did you mean: 

PPF when all HUs are on staging area

michael_fallenbchel
Active Participant
0 Kudos

Hi experts,

I want to have the following:

When all HUs for one delivery are on a staging area (type 9026), I want to print the delivery note.

Now I have createt a scheduling condition and started to code 🙂

After that, I did some testing, it was not working so I started to debug.

The problem is now - I have the last HU, confirm it to staging, then the debugger starts (when pressing confirm and save), but at that moment, the move of the HU is not committed to database. So the last HU is from database side still on it's location, will be committed after that.

Is there a way to get exactly that information somehow in my coding?

I'm using interface IF_EX_EVAL_SCHEDCOND_PPF (badi EVAL_SCHEDCOND_PPF), so I have these attributes:

IO_CONTEXT TYPE REF TO CL_CONTEXT_PPF

IP_PROTOCOL TYPE BALLOGHNDL

IP_TTYPE TYPE PPFDTT

value( FLT_VAL ) TYPE PPFDFLTCO1

value( II_CONTAINER ) TYPE REF TO IF_SWJ_PPF_CONTAINER

while II_CONTAINER is initial

Any ideas?

Regards

Michael

Accepted Solutions (0)

Answers (1)

Answers (1)

michael_fallenbchel
Active Participant
0 Kudos

Hi,

played a little bit more now.

What I know is that the open task in in /scwm/ordim_o table.

Is there way to know that I actually want to confirm exactly that task? With some "special" function/class, reading the stack or whatever?

Thanks

Michael

Former Member
0 Kudos

Compare table /N/SCWM/ORDIM_O with /N/SCWM/ORDIM_C you might get the result.

Check for the field "WT_Status"

michael_fallenbchel
Active Participant
0 Kudos

Have checked now /scwm/ordim_o and /scwm/ordim_c:

First - field WT_STATUS does not exist, there's one field TOSTAT, but not helpful.

I have now created a dnote that needs 5 pallets to be picked, after each pick I checked the different tables.

Now I am at the last pallet (4 are confirmed, the last one is confirmed in the RF), what I can see:

/SCWM/WHO

--> one entry (sure), not confirmed, assigend to my ressource

/SCWM/ORDIM_O

--> one entry, qty is my remaining qty, TOSTAT is empty

/SCWM/ORDIM_C

--> in the meantime 8 entries (always 2 per HU pick) all are TOSTAT C

Monitor:

When I check my warehouse order, I can see it's assigned to my ressource, opening the corresponding warehouse tasks, I can see 4 are confirmed (see /SCWM/ORDIM_C) and one is open (see /SCWM/ORDIM_O)


Ressource Management:

I can see that my ressource is working on that warehouse order

What else can I do?

michael_fallenbchel
Active Participant
0 Kudos

Maybe a different solution:

I can implement badi /SCWM/BADI_TO_CONFIRM_POST

here I can see what actually is confirmed. If it's the last pallet, I can manually trigger the PPF for printing.

Then the question is - how to manually trigger the PPF?

Regards

Michael

michael_fallenbchel
Active Participant
0 Kudos

Also got this...problem is, when I add the trigger manually ( cl_manager_ppf-> create_trigger) the scheduling condition is not executed (okay, no problem), and when I check my manual ppf in SPPFP, the application key is empty: