Quantcast
Channel: SCN : Discussion List - SAP Advanced Planning & Optimization (SAP APO)
Viewing all 2068 articles
Browse latest View live

BAPI_PRDSRVAPS_SAVEMULTI2 - EXTENSION_IN data not saved during Create

$
0
0

Hi,

 

we use BAPI_PRDSRVAPS_SAVEMULTI2 not only for updating the existing products but also for creating products in APO, however there is an issue using the product identification field PRODUCT_ID. Let me explain.

 

When we create the new product and the data is supplied via standard fields in 'ordinary' table parameters (fx. PRODUCT_ALT_UOM), then it's sufficient to provide just PRODUCT and PRODUCT_INT to identify the product. Of course, some other data is supplied as well. The field PRODUCT_ID (GUID of length 32) is generated when the product is saved and it is spread by the system into all tables as needed (following the example with data in parameter PRODUCT_ALT_UOM, the same GUID is stored in respective table /SAPAPO/MARM as is used in product master data /SAPAPO/MATKEY). So far, so good.

 

However, we need to save the custom fields data as well in EXTENSION_IN, using the structure BAPI_TE_SAPAPO_MATLOC. It seems that the system is not able to transfer the newly generated PRODUCT_ID to these fields which are passed as formatted, aligned strings in fields VALUEPART1-VALUEPART4 of EXTENSION_IN. That's why we need to save the product first in normal way (without passing in EXTENSION_IN) and call BAPI_TRANSACTION_COMMIT, then read it again using BAPI_PRDSRVAPS_GETLIST2 to obtain the PRODUCT_ID just generated for the new product and then we update (already existing) product again - now already with filled PRODUCT_ID in EXTENSION_IN.

 

That is a problem as it introducesunnecessary COMMITs and more BAPI calls than needed.

 

My question is: Is there any way to force the system to supply the PRODUCT_ID not only for the standard tables but to the data in EXTENSION_IN during the very first save already, so that we could spare one more COMMIT, BAPI_PRDSRVAPS_GETLIST2 and BAPI_PRDSRVAPS_SAVEMULTI2?

 

Just to avoid misunderstandings, the data for BAPI_TE_SAPAPO_MATLOC_X in EXTENSION_IN are supplied, too, so this is not a problem. We know that it's only the missing PRODUCT_ID in EXTENSION_IN in the first call which is causing the problem of data not being saved. The thing is, how to make the system treat the data in EXTENSION_IN the same way as in standard tables? The PRODUCT_ID is missing during the first save in all the table parameters - the standard ones and in data contained in EXTENSION_IN. However, the data in standard table parameters are saved well while data in EXTENSION_IN are not.

 

 

Thank you, Michal


To Assign Colour Detailed Scheduling Planning Board based on enhanced Z attributes in Mat1

$
0
0

Hello folks,

 

     I have business requirement to color the orders in DSPB board based on enhanced Z attribute in extra tab of MAT1 please note not the extendable free attribute provided by SAP. I have this requirement to be replicated in resource chart & product chart, wherein i was successful in product chart but i'm unable to replicate the same in resource chart. I'm wondering, is it because the product attribute is only applicable in product chart but not in resource chart.

 

 

// If

Table Name      2    Product

Field Name      ZZGSP   (I did append Z field to standard structure for field selection)

Relat. Operator EQ   Equal To

Compar. Value   "LV resource"

 

Then

Graph.Object ID                          (you can define here the graphical object that is to be used)

    Or

Next Decisn Grp                         (or you can call a different decision group) //

 

 

I wrote same rule in product chart & resource chart "Decision table for Graphical Objects"  but coloring is only replicated in product chart but unsuccessful in resource chart 

 

Any recommendations/suggestions would be highly appreciated and rated ,

 

 

 

Cheers,

Srikanth

SDP selector not filtering with custom field value

$
0
0

Hello APO experts 

 

In order to add some specific selection-criteria to a selection profile created with tcode /SAPAPO/SDP94, we have implemented the BADI /SAPAPO/SDP_SELECTOR. We have created a specific field plant-dependant on material view /SAPAPO/MAT1 (all five ATT fields were already used) that we want to use as a criteria in a DP selection profile : FORECAST.

 

1- Profil de sélection.png

 

Three methods have been used :

  • INIT_OBJECT_LIST : To populates the selection field list in the shuffler.
  • F4 : To benefit from a search help.
  • DP_CHAR_VALUE_LIST : Modification of Hit List for Planning Area Characteristics : DP planning.

 

The issue results from the 3rd one.

  1. Once we create a selection profile with FORECAST = VALUE, the product hit list is filtered according to the value we entered in the new specific selection-criteria. Out of the three materials we are using that have CVCs, only one has FORECAST = VALUE for one plant in database and the system is bringing it up alone as expected. --> This works fine.

 

2- Hit list.png

 

2. But when we select the product to load data in the DP planning book, the plants are not filtered.

3- DP Planning.png

For our material, in database plant OP04 doesn't have FORECAST = VALUE and therefore shouldn't appear in the book as per our expectations.

The criteria only filters Materials as per our selection profile type. It is the same when we use a plant selection profile type, plants are filtered but not the materials. We need a selection profile type that crosses both material AND plant data (this exists in SNP).

 

The method DP_CHAR_VALUE_LIST is called in both of these steps. The input table IT_SELECTION contains each selection-criteria of our selection profile. But in debugging mode, we discovered that in the 2nd step, only standard selection-criteria were taken into account. The table IT_SELECTION does not contain the specific selection-criteria anymore.

 

 

Can anyone help us on this?

Thanks in advance.

Realignment -Request ID Issue-/SAPAPO/RLGCOPY

$
0
0

Dear Experts,

 

We have an issue with our client as below:

 

"Issue is that when reviewing the realignment log when run realignment in the background with lots of steps, I do not see a APO Realignment Request ID in the log file. I do if I only have one step? Is this normal behavior? I don't see any evidence in the infocube that the data has been realigned for the background job with many steps.

 

Wondered if choosing the option 'Create Request for Each Step' on the infocube section in /SAPAPO/RLGCOPY is something I need to do, but the help doesn't seem to confirm it.

 

1.  Not receiving an error message in /SAPAPO/RLGCOPY log file.

2. Performance is not currently an issue."

 

One observation, noticed this when running a background job with several hundred realignment steps. Just ran realignment for one step and the request id was generated.

 

Please help me to overcome the above issue.

 

Thanks in advance,

Karthik

PDS NO operation / activity view

$
0
0

Dears,

My IDES SCM ver 701, after I hv transfer the work center, BOM, production version with actived model. but there is NO view (Operation/activity) in PDS , except BOM component view.

I re-try the Curto_create in ECC to retransfer the PDS into APO side, canNOT solve this issue.

 

Could someone help to guide me? thanks.

 

Regards, Allen

PPDS - Heuristic "Schedule Sequence Manually"

$
0
0

When I run the heuristic "Schedule Sequence Manually" the log message says that there is a "limit exceed" for a order and the operations are not scheduled.

Do anyone saw something like this?

Need Planning Book vertical scroll bar to be locked

$
0
0

Hi Guru,

 

One of user want a interface where planning book will be opened such a way so that no need to up and down the right sided scroll bar to view the data. User want want see the data at a glance without using scrolling up and down. Would be grateful if anyone suggest what settings need to maintain for that. Here I am attaching the screenshot for reference.

 

Thanks and Regards,

Prasanta

PDS setup_key Can NOT receive CIF value

$
0
0

Hello,

I like to update PDS Activity Setup grounp/Key in BADI: /SAPAPO/CURTO_CREATE

*==========Coding sample===================

method /SAPAPO/IF_EX_CURTO_CREATE~CIF_IMPORT.

 

 

 

 

  CONSTANTS:

             lc_PM_A01    TYPE /sapapo/cres_name      VALUE 'WPM_A01_1000_001',

             lc_PM_B01    TYPE /sapapo/cres_name      VALUE 'WPM_B01_1000_001',

             lc_PM_C01    TYPE /sapapo/cres_name      VALUE 'WPM_C01_1000_001',

             lc_PM_D01    TYPE /sapapo/cres_name      VALUE 'WPM_D01_1000_001'.

 

 

               .

 

 

  DATA:          lv_matnr   TYPE /sapapo/matnr

              ,  lv_ext_matnr TYPE matnr                    ">>721073

              ,  lv_matid   TYPE /sapapo/matid

              ,  ls_locmap  TYPE /sapapo/locmap

              ,  lv_103     TYPE /sapapo/mat_char10

              ,  lv_resname TYPE /sapapo/cres_name

              ,  lv_pos     TYPE i

              ,  lv_len     TYPE i

              ,  lv_res     TYPE /sapapo/cdps_setup_item

              ,  lv_set     TYPE /sapapo/cdps_setup_item

 

 

              .

 

 

  FIELD-SYMBOLS:     <fs_trprod>         TYPE /sapapo/cif_curto_trprod

                   , <fs_cif_mode>       TYPE /sapapo/cif_curto_mode

                   , <fs_cif_planopr>    TYPE /sapapo/cif_curto_planopr

                   , <fs_cif_activity>   TYPE /sapapo/cif_curto_activity

                   .

 

 

 

 

*include zapo2a_ZXCIFUSERU16_1100.

 

 

BREAK-POINT 'SCM_800'.

 

 

  LOOP AT ct_trprod ASSIGNING <fs_trprod>

  WHERE ext_locnoto ='1000'.

 

 

    LOOP AT ct_modes ASSIGNING <fs_cif_mode>.

 

 

     SELECT SINGLE name FROM /sapapo/reskey INTO lv_resname   WHERE NAME IN ('WPM_A01_1000_001', 'WPM_B01_1000_001' , 'WPM_C01_1000_001', 'WPM_D01_1000_001').

     CHECK sy-subrc = 0.

 

 

      LOOP AT ct_activities ASSIGNING <fs_cif_activity> WHERE ext_plannr = <fs_cif_mode>-ext_plannr AND vornr = <fs_cif_mode>-vornr.

 

 

        CLEAR: lv_res, lv_len, lv_pos, lv_matnr, lv_matid, ls_locmap, lv_103.

        lv_matnr = <fs_trprod>-ext_matnr.

 

 

* ... get internal Material ID

        CALL FUNCTION '/SAPAPO/DM_MATERIAL_GET_MATID'

          EXPORTING

            iv_matnr        = lv_matnr

          IMPORTING

            ev_matid        = lv_matid

          EXCEPTIONS

            matid_not_found = 1

            OTHERS          = 2.

        IF sy-subrc <> 0.

* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

        ENDIF.

 

 

* ... get internal Location ID

        CALL FUNCTION '/SAPAPO/LOC_GET_LOCMAP'

          EXPORTING

            iv_extlocno = <fs_trprod>-ext_locnoto

          IMPORTING

            es_locmap   = ls_locmap.

        TRY.

            CASE lv_resname.

* ... W13 Resource

              WHEN  lc_PM_A01.

 

 

* ... Retrive additional fields for Setup Key

                SELECT SINGLE at103 FROM /sapapo/matloc INTO lv_103

                WHERE matid = lv_matid

                AND   locid = ls_locmap-locid.

                CHECK  lv_103 IS NOT INITIAL.

                 MOVE lv_103 TO lv_res.

 

 

            WHEN OTHERS.

*                 Ersten 2 Stellen weg

                    lv_res = lv_ext_matnr+2(10).

            ENDCASE.

<fs_cif_activity>-SETUP_KEY = lv_res.

 

 

** ... finally check the Key

*            CALL FUNCTION '/SAPAPO/DM_SETUP_ITEM_GET_ID'

*              EXPORTING

*                i_locid       = ls_locmap-locid

*                i_setup_item  = lv_res

*              EXCEPTIONS

*                not_qualified = 1

*                not_found     = 2

*                OTHERS        = 3.

*            IF sy-subrc <> 0.

*              CONTINUE.

*            ELSE.

*              <fs_cif_activity>-SETUP_KEY = lv_res.

*            ENDIF.

 

 

<fs_cif_activity>-SETUP_KEY = 'dd'.

<fs_cif_activity>-r3_rfgrp = 'ccdd'.

 

 

          CATCH cx_root.

            CONTINUE.

        ENDTRY.

 

 

      ENDLOOP.

    ENDLOOP.

<fs_cif_activity>-SETUP_KEY = 'AD'.

  ENDLOOP.

 

 

<fs_cif_activity>-SETUP_KEY = 'dd'.

<fs_cif_activity>-r3_rfgrp = 'ccdd'.

 

 

ENDMETHOD.

 

 

*==========Coding Sample end================

 

Debugged and saw value will update CT_activities, but after open PDS, can NOT found any values on PDS.

detail as attached screen showing.

 

whether anyone know the issue, thanks for your helping.

Regards, Allen Wang


Picking date in Outbound delivery

$
0
0

Hi Experts,

 

 

There is a expectation from business as below.

 

PO transfer type ZUB with the Outbound Delivery Between plant X to Plant Y

1) If the PO is created before 10 AM then the Picking date in the Outbound Delivery must be in the same dates than the PO creation

2) If PO is created after 10 AM then picking date should have +1 day on the dates in the Outbound Delivery

 

My Explanation is the picking date is calculated/taken as the same date from material availability date. For example in some case the MAD is in system as 26.02.2016 and the picking date also take as 26.02.2016((PO creation date I as 24.02.2016) and  in some other cases MAD is in system as 08.03.2016 and the picking date also take as 08.03.2016.(PO creation date I as 07.03.2016 before 10 AM and also after 10 AM).

The general logic is..“MAD (Material Availability Date) + Pick Pack Time (Shipping Point) + Transportation Planning time + Transportation time (Route) = Date on which the Material or Article Reach Customer/Plan GI date/Transportation Planning Date/Loading date/Delivery Date​”

How this picking date and article available date Is getting calculated. is this based on ATP logic? If yes then what should be the logic here in this case.

This might be a strong logical explanation required.

 

 

Please help.

 

 

thanks,

DD

Performance issue forAlert extraction from standard table to Z table.

$
0
0

Hello Expert- Requesting your valuable inputs on the below concern.

 

Please note the Alert process,

 

 

  1. We are fetching SDP alerts from standard table to Z table.
  2. The reason behind is that we are adding various product master information & some key figures into the Z table.
  3. Then the Amon1 transaction fetches all these details on the basis of Z table to display the same for day to day business activity.
  4. This is done by a function module in Amon1
  5. We have lot of alert profiles created by business as per there requirement for different alert types
  6. However we have three common alert profiles/ overall A.P ( these are not having any selection profiles mentioned in the A.P) which are passed into Z programs to fetch three different alert types.
  7. As per these three different common O.A.P we have three separate steps to fetch these alerts.

 

Now the issue is, these three separate steps are taking huge runtimes( 24 hours) on  which we want to improve.


We have tried all the ways to improve the performance by,

  • Changing the steps parallel & series way
  • by modification of program logic
  • Selecting a specific alert types in the common AP.

 

however we haven't received the improvement.

 

 

Functional team is suggesting application of parallel processing profiles to distribute the three Z steps into multiple steps to reduce the runtime.

 

can anyone of you suggest on the above, any other logic to be implemented to reduce the runtime or how to apply the PPP for z program.

 

Thanks in advance!

 

Sam.

Question about safety stock method BS

$
0
0

Hi guys,

 

I am new to the APO .  Could someone help me on this issue?

 

1.

 

I am testing safety stock method AS/BS .

 

AS works fine. But BS does not work.  Safety stock is reflected in the planning book.

 

I use the same way as i i did for AS.  Set safety stock method_BS in product master and then go to Safety stock planning, click execute. Planning area is 9ASNP05.

 

It just does not work.

 

2. Second question is :

 

if I set the target days' supply to 5 days. And use safety stock method SZ to set safety days' supply to 5 days. Why most of the time target stock level is great than safety stock.

 

My understanding is I set them all to "5 days"  which means target stock level should cover next 5 days'' demand and safety stock should also cover 5 days' demand.  So they should be  the same.

 

Could someone give me any advice?

 

Thanks a lot

APO PDS How to create table /SAPAPO/COMPALTZ

$
0
0

We are creating PDS master data with BAPI_PDSSRVAPS_SAVEMULTI and Function module /SAPAPO/PPM_POST_MAINTAIN_Z in APO.

 

We want to create table /SAPAPO/COMPALTZ by Function module /SAPAPO/PPM_POST_MAINTAIN_Z..

Could you tell us how to set item “BOMID”?

 

Background Setting

 

ECC Production version   ⇒(CIF)⇒ APO PDS A   ⇒(Add-on)⇒  APO PDS A’

 

We are copying PDS A to PDS A’ using Add-on program.

BOM item category getting incorrect value when create production order from CIF, Because PDS A’ is lack in table /SAPAPO/COMPALTZ.

Transportation Resource with SNP Optimizer

$
0
0

Hello experts,

 

I found this explanation on SAP help.

 

Transportation Resources - FROM SAP HELP

Available Capacity
  1. You can assign transportation resources to multiple transportation lanes and so limit the transportation capacity on these transportation lanes. To do this, specify a transportation resource in the Resource field of the Means of Transport section in the transportation lane.
  2. In the SNP optimizer profile, you can set that you want the available means of transport to be treated as discrete (in non-divisible integer numbers). If you do this, the means of transport is treated as discrete for each transportation lane. You define the capacity of the means of transport in the Transp.Res.Size field of the resource master data.

  You can use this option to model the means of transport that are available in your company (a truck, for example). However, if you commission external transportation service providers, considering means of transport as discrete is not relevant for you. 

 

With the first point I'm OK. For the second point I would like to have your input (opinion) about this:

  • You define the capacity of the means of transport in the Transp.Res.Size field of the resource master data. You can use this option to model the means of transport that are available in your company (a truck, for example).
Second opinion - are the two points complementary?

 

Thank you,

 

Regards, Marius 

What is difference between /SAPAPO/PEG1 and /SAPAPO/RRP3..?

$
0
0

Hi Everyone,

 

I want to know difference between /sapapo/peg1 and /sapapo/rrp3,

 

1 - If we create order by peg1 and rrp3 both will be same..?

2 - If both are same why SAP provided peg1 for order creation


Thanks and regards

Narwdeshwar  

Alerts Missing in AMON1

$
0
0

Hello All,

 

When i determine Alerts in AMON1, it is showing that there are around 100 Alerts, but no alert is getting displaye din the Grid. For some locations it is displaying and for some it is not displaying I have checked the basic things and did not find any issue. Can anyone help me here.

 

 

. > Alert Profile was assigned to me

  > There is a blank Data View in the Alert Profile

  > Overall Alert Profile was assigned with correct horizon

  > No selection ID was given in the Database Alert tab in the Alert Monitor

 

 

Pls let me know if i am missing something.Untitled.png


CTM is generating dependent demand on Phantom Assembly instead of components of Phantom Assembly

$
0
0

Hello Folks,

 

I am using CTM with Bucket-Oriented planning and SNP Orders along with SNP PDS. I have a FG with has components and a phantom assembly in the PDS. When CTM is executed, dependent demand is generated on the Phantom Assembly instead of the components of Phantom Assembly. Is this standard behavior, can this be prevented by using any planning parameter?

 

FG - A

Phantom - P - ( Phantom components P1,P2)

Component - X1

Component - X2

 

 

I also use PP/DS where there is dependent demand generated on the components of Phantom Assemblies but we run CTM prior to PP/DS for business benefits.

 

Regards

AK

MoT not assigned to T-lanes created via CIF

$
0
0

Dear

Does anyone know this case:

 

We create Transportation lane via CIF from Purchase infor record,but there is no Means of transport in TL.

And I found SAP Note No. 1383431.

 

________________________________________________________________________

Short Text MoT not assigned to T-lanes created via CIF

Component SCM-APO-MD-SRC Sources of Supply

 

While bringing across a Purchase Info Record from ECC via CIF the

default means of transport are not created for the transportation la

ne.

The system as standard creates product specific T-lane between source

and destination location from the CIF'ed PIR. However, the defau

lt means of transport does not get created for the transport lanes, and

therefore the lanes are not usable: DRP is not able to plan fo

r and create PO / PR for any net demand.

Reason and Prerequisites

Solution

Implement the correction or the corresponding support package.

Other terms

/SAPAPO/CIF_TPSRC_INBOUND, /SAPAPO/CIF_TPSRC_MAINTAIN

________________________________________________________________________

 

Does anyone know which item in purchase info or somewhere that can set data for means of transport.

 

Thanks&Regards

Ellen

Optimizer plans safety stock for distribution demand doubling safety cover

$
0
0

Hi

 

 

We have a situation that is easy to solve using standard MRP but we are struggling to find a solution for in the SNP optimizer and I'm hoping someone here may be able to help.

 

 

We have a manufacturing plant that has it's own warehouse and distributes stock directly to the customer. It also manufactures the same product for distribution to the customer via external warehouses.

 

 

All warehouses that supply to customer need to hold a safety stock to ensure that customer demands can be met. This is a time-based safety stock so future demand is automatically taken into account.

 

 

The issue that we have is that the external warehouses are holding a safety stock (as expected) and raising purchase requisitions against the manufacturing plant (as expected). The manufacturing plant is then taking these purchase requisitions into account when calculating it's own safety stock and therefore holding stock not only to cover 2 weeks of customer demand, but also the requisition demand from the external warehouses. This means that we are in fact holding double safety stock for any demand through the external warehouse (i.e the expected 2 weeks cover at the distribution site, and a further 2 weeks at the manufacturing site.)

 

 

In standard basic ECC planning this is not a problem as on the MRP2 tab for the plant / material there is a safety time indicator that lets you ser a safety time against all requirements or only for independent requirements. Where is the equivalent for the SNP optimizer?

 

I did find a post from 2009 that relates to this and makes hint of a parameter that could possibly be used to achieve this (GLOBALSAFETYMETHOD) however I can't find any further info on this parameter.

 

Thanks in advance for your assistance with this,

 

Regards

-Andy

Questions about reorder point method and safety stock method

$
0
0

Hi guys,

 

I am testing safety stock method BS( BETA service level and reorder point method).

 

But I found there are 4 options in procedure of Lot Size tab of product master.

 

1 lot for lot

 

2 fixed lot size

 

3 periodic

 

4 reorder point

 

So what is difference between this 2 ?

 

If I select safety stock method BS,  can I still use lot for lot? i am confusing about this.

 

PS : I use heuristic planning.

 

Any suggestion?

 

Thanks a lot,

 

Michael

Multiple ECC system integration with one APO system

$
0
0

Dear All,

 

We have a scenario where we need to integrate multiple ECC systems with single APO system. All ECC system have same material codes but different location codes. As there are different ECC systems for different regions. Given this scenario we will have integration of master data and transaction data with all three ECC systems but for different locations. Given this scenario is it possible to use only one BSG for all three ECC system ? I know using Multiple BSG is a safe approach but i need to understand potential risks we may encounter if we use onr BSG in this case , as location codes are different in this case. Appreciate your suggestions. Thanks

Viewing all 2068 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>