cancel
Showing results for 
Search instead for 
Did you mean: 

Assembly Processing (PS)

marcio_blos
Participant
0 Kudos
329

Hello gurus,

I'm working with the assembly processing scenario, using quotation and network. I have two "materials," both linked to the same standard network. The standard network, in turn, is associated with a standard project that contains only one WBS element.

The process works perfectly for both materials (Screenshot_00.jpg and Screenshot_01.jpg), but only when the sales document (which is the quotation) has a single item.

Screenshot_00.jpg

 

Screenshot_01.jpg

 When I add a second item (Screenshot_02.jpg), an error occurs (Screenshot_03.jpg).

Screenshot_02.jpg

 

Screenshot_03.jpg

It seems like the WBS element to be created is validated in the sales document before it's actually generated, or the WBS element is simply not created at all.

I'm using version 2024. I believe this might be a program error, as I've already encountered another issue where I had to apply SAP note 3408903 because the system wasn't even creating the operative network.

Has anyone experienced a similar issue or can offer any help? @SAPSupport 

Regards
Marcio Blos

View Entire Topic
marcio_blos
Participant
0 Kudos

Hi all..

I identified the issue in the program. Since I am using a training system rather than a client system, I cannot open a ticket with SAP, but I’m sharing the details here in case it can help others.

In the code for the FM CJWB_ELEMENTS_COPY, specifically at line 147, the FORM EINB_WINDOW_INPUT is invoked. Within this FORM, on line 110, a SELECT is made from the PRPS table, targeting the PSPHI field, and assigning the result to the variable L_PSPHI, using the field PSPNR as a criterion. However, the value in the variable RCWKP-DANEBEN (used as filter) refers to the POSID of the standard WBS element, which causes the selection to always return empty. I believe there are two issues here:

  1. Attempting to select a WBS element from the table when the operational project hasn’t been physically created yet.
  2. Using a standard WBS element code to search in a table for operational WBS elements.
    Because of this, the selection for the PROFL field in the PROJ table, which should occur at line 113, never happens. As you can see on image 1.

Image1.jpg
The values required for the variables L_PSPHI and L_PROFL are already in memory. Therefore, running the selection is unnecessary. These values are already present in the PRPS and PROJ structures, specifically in the PRPS-PSPHI and PROJ-PROFL fields. When debugging the program and halting at line 115, if you replace the values of L_PSPHI and L_PROFL with those from PRPS-PSPHI and PROJ-PROFL, the error is resolved, and the process continues without issues. As you can see on images 2, 3 and 4.

Image2.jpgImage3.jpgImage4.jpg

Regards
Marcio Blos