Skip to Content
author's profile photo
Former Member

Get profit center codes by using the profit center group name

Hello, Im Jason.. right now I am having difficulty in retrieving the profit center codes using the profit center group names... for example: for a given country Macau, the profit center groups are 1263MOER & 1273MOER.. this information will be my basis to retrieve the profit center codes... Is there function module created for this.? Thanks a lot!

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

5 Answers

  • Best Answer
    author's profile photo
    Former Member
    Sep 28, 2005 at 04:32 AM

    hi,

    check with this function module

    BAPI_PROFITCENTERGRP_GETDETAIL

    cheers,

    sasi

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Sep 30, 2005 at 01:13 AM

    Hi sasikumar! this is me Jason... I want to apologize for my late response...thanks a lot.. the function module that you gave me is really helpful.. Thanks again! Excellent!!!

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Sep 30, 2005 at 01:21 AM

    Im having difficulty again.. is there any commands or keywords which i can use in concatenation that will serve as a line feed.. just like with the SKIP or ULINE. for example: CONCATENATE text-001 [line_feed or next line] text-002 into v_text.... so that the output will contain a heading and a subheading.. I will be using the (v_text) or the variable to pass in a function module that is to be used for ALV display....thanks!!!

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Sep 30, 2005 at 01:22 AM

    Im having difficulty again.. is there any commands or keywords which i can use in concatenation that will serve as a line feed.. just like with the SKIP or ULINE. for example: CONCATENATE text-001 [line_feed or next line] text-002 into v_text.... so that the output will contain a heading and a subheading.. I will be using the (v_text) or the variable to pass in a function module that is to be used for ALV display....thanks!!!

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Sep 30, 2005 at 02:06 AM

    For line feed try this -

    DATA LF TYPE X VALUE '0A'.

    CONCATENATE TEXT-001 LF TECT-002 INT) ....

    Dont forget to reward if answers helped.

    Cheers

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Sanjay Sinha.... unfortunately it doesn't work... there's an error saying that the LF should have a type C, N, D, T or string....