cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI for transaction "/SAPAPO/MSDP_FCST1"

Former Member
0 Kudos

Hi All,

I'm new to SAP APO and have got a requirement to find BAPI for uploading data into Define like Profile under Lifecycle Planning .

Is there any BAPI available or  i can find out  BAPI for the same ?



Regards,

Prabin


Accepted Solutions (1)

Accepted Solutions (1)

former_member187488
Active Contributor
0 Kudos

Hi Prabin,

Sorry but there's no BAPI for like profiles.
You can consider using below listed function modules, but SAP does not support these FMs to be used in customizing coding, so please take special care to use them and perform extensive testing before you utilize them in production system.

/SAPAPO/FCST_LIKE_PROFILE_COPY Copy Like Profile

/SAPAPO/FCST_LIKE_PROFILE_DEF  Define a Like Profile

/SAPAPO/FCST_LIKE_PROFILE_DELE Delete Like Profile

/SAPAPO/FCST_LIKE_PROFILE_SAVE Save a Like Profile

/SAPAPO/FCST_LIKE_PROFILE_ZUOR Assign a Like Profile


Best Regards,
Ada

Former Member
0 Kudos

Hello Ada Lv / ABAP'ers

When I post the values manually in T-Code /n/SAPAPO/MSDP_FCST1 for Life Cycle Planning, its generating the LIKEID field automatically.

But When I try with FM "/SAPAPO/FCST_LIKE_PROFILE_SAVE Save a Like Profile" as you suggested is not generating the LIKEID value.

In the tables /SAPAPO/T445LIKK & /SAPAPO/T445LIKE the LIKEID field is empty.

How could be the LIKEID field filled with value when executing the FM  /SAPAPO/FCST_LIKE_PROFILE_SAVE

Please suggest your valuable points

Regards

Suhale

former_member187488
Active Contributor
0 Kudos

Hi,

As far as I could see in FM /SAPAPO/FCST_LIKE_PROFILE_DEF, in which FM '/SAPAPO/FCST_LIKE_PROFILE_SAVE' is called, it generates like profile ID with below coding:

  IF g_likeid IS INITIAL.

      CALL FUNCTION 'GUID_CREATE'

        IMPORTING

          ev_guid_22   = l_guid.

      g_likeid = l_guid.

   ENDIF.

BR,
Ada

Former Member
0 Kudos

Thank you for your valuable response.

Former Member
0 Kudos

Thank you Ada Lv, GUID_CREATE working fine.

I have another Question for FM /SAPAPO/FCST_LIKE_PROFILE_ZUOR - Assign Like Profile. This FM is calling a screen and don't have any parameters to pass. In my requirement I am not allowed to do SHDB recording and write the BDC program.

I have to pass 3 fields in it

1.  Planning Area

2. Product

3. Like Profile.


Is there any way to avoid the screen and pass the values to the table fields??

Answers (0)