Skip to Content
author's profile photo Former Member
Former Member

Planning function type Exit in SEM-BPS?

Dear Experts,

I have to write a planning function type <u>Exit</u> in SEM-BPS. The function should copy some quotation price values from a quotation infoprovider to another infocube. I have made a Multi area in SEM-BPS to perform the copy. There is a characteristic '_AREA_____' (Planning Area) in SEM-BPS which is automatically added to all Multi area to distinguish the infoproviders.

How can I reach this '_AREA_____' object in my Exit?

I should copy from Area1 to Area2 but there is not such an infoobject!

I would be appreciated if you have some source code of Exits which copies values between different areas of BPS because I am quite new in this 😊

Thanks in Advance,

Dezso

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 01, 2006 at 07:24 AM

    Have a look at thsi:

    Exit in BW-BPS

    Regards

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 03, 2006 at 11:12 AM

    In your exit function you have a parameter XTH_DATA. This parameter contains a hashed table. The structure of the table consists of S_CHAS that contains all characteristics and S_KYFS that contains all key figures. In a Multi area there is a field called AREA___ that you can check. The basic coding in your function module should therefore look like.

    DATA: l_s_data TYPE /1SEM/_YS_DATA<...>

    LOOP AT xth_data into l_s_data.

    IF l_s_data-s_chas-_area___ = 'CUBE1'.

    l_s_data-s_chas-_area___ = 'CUBE2'.

    insert l_s_data into xth_data.

    IF sy-subrc <> 0.

    MODIFY xth_data FROM l_s_data.

    ENDIF.

    ENDIF.

    ENDLOOP.

    Note that this does not delete existing records. The type of the structure l_s_data depends on the client and name of the multi area.

    Best regards

    Dirk

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Small addition:

      If clients in development and productive system are different, then declarations like

      DATA: l_s_data TYPE /1SEM/_YS_DATA<...> and

      l_s_data-s_chas-_area___ = 'CUBE2' are not applicable.

      You should use something like

      field-symbols: <ls_data> type any,

      <value> type any.

      ...

      assign component 'S_CHAS-_AREA____' of structure l_s_data to <value>.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.