How to determine PLTYP from BPLAN

How can I determine a plan's type (PLTYP) given it's plan code (BPLAN)?  Is there a lookup table for this?

For that you might have to look at View U_17170.
a

Similar Messages

  • How to determine endpoint from a handler

    I want to write a request handler which will set a special header based upon the target endpoint.
    How do I determine the endpoint from the request handler?
    On a (possibly) related note, is there a good reference somewhere of the typical properties which are likely to be set related to the message context during web services flows?
    Thanks,
    -- Frank

    I found at least partial answers to my questions.
    MessageContext.getPropertyNames() can be used to see the properties on a given flow.
    MessageContext.getProperty(prop) can be used to get information for paroperties such as:
    prop=javax.xml.rpc.service.endpoint.address
    prop=wsdl.portName
    -- Frank

  • How to determine receiver from multiple receiver systems

    Hi all,
    I've scenario :
    soap req -> XI -> req to external database -> resoponse from db to XI -> BAPI request -> response from BAPI to XI -> send response to SOAP Response.
    In this scenario we have multiple SAP HR Systems. Now external database sends URL field and using that URL field I've to determine which SAP HR system is going to be used to get BAPI response.  Each SAP HR system uses the same BAPI structure.
    How can I determine particular SAP HR system based on URL field.
    I am using BPM for this scenario.
    Is there any way I can do this whole scenario without BPM?
    Please help me on this issue.
    Thank You,
    Chintan

    Hi Chintan,
    Have you tried with the conditional routing with Receiver Determination.
    That could probably help you to route to various SAP HR business systems based on the URL field.
    For the whole flow you need BPM...but for SAP HR systems receiver determination will be sufficient.
    Let me know if you need any more details on it.
    also check with below links
    Xpath expression
    Illustration of Enhanced Receiver Determination - SP16
    /people/venkataramanan.parameswaran/blog/2006/03/17/illustration-of-enhanced-receiver-determination--sp16
    Customise your 'XPATH' Expressions in Receiver Determination
    /people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination
    /people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers
    http://help.sap.com/saphelp_nw04/helpdata/en/d6/e44fcf98baa24a9686a7643a33f26f/content.htm
    Hack: Using XPATH in XI Message Mappings
    /people/daniel.graversen/blog/2006/12/29/hack-using-xpath-in-xi-message-mappings
    Thanks
    Swarup
    Edited by: Swarup Sawant on Apr 4, 2008 4:40 AM

  • How to determine line # from printstack() with cc compiler on Solaris 10

    Hi,
    printstack() when called produces a stack trace per the following:
    /lib/libc.so.1:0xc5364
    /lib/libc.so.1:0xb9e64
    /platform/sun4u-us3/lib/libc_psr.so.1:memcpy+0x660 [ Signal 11 (SEGV)]
    /opt_outside_local_disk/opt/zim/bin/program_name:function_name+0x160
    How does one determine what the line # is in the C program for the above offset 0x160?
    Thanks in advance.
    Joe

    Hi Joe,
    I don't know what is the best way, but here is a 3-steps procedure to find the line.
    I inserted a printstack(2) line in my program, and got this output:
    /export/home/nikm/SunStudioProjects/4Queens/NQueens'main+0x711 [0x4023f9]I use Sun Studio 12 update 1 to compile my program.
    It includes Performance Analyzer tools, and one of its utilities, "er_src", can help to find the line.
    First of all, let's run it with "-disasm" option to find the line number, that corresponds to the address 4023f9:
    nikm@OS-Dec2008:~$  er_src -disasm main  /export/home/nikm/SunStudioProjects/4Queens/NQueens | grep 4023f9
                    [137]   4023ed:  jle     .+0xc [ 0x4023f9 ]
                    [141]   4023f9:  movq    0x11280(%rip),%rsiBasically, that's it, we have the line number - it is 141.
    Let's verify that this is correct:
    nikm@OS-Dec2008:~$  er_src -src main  /export/home/nikm/SunStudioProjects/4Queens/NQueens | grep -n '141\.'
    214:           141.     return total_pos;Well, it points to the line after the printstack(2) statement. Let's verify this:
    nikm@OS-Dec2008:~$  er_src -src main  /export/home/nikm/SunStudioProjects/4Queens/NQueens | head -214 | tail -5
               137.     if (debug > 0) {
               138.         printstack(2);
               139.     }
               140.
               141.     return total_pos;
    nikm@OS-Dec2008:~$ That's it. The line is 138, and printstack(2) actually points to the next line.
    Thanks.
    Nik
    Edited by: NikMolchanov on Aug 29, 2009 10:10 PM
    Edited by: NikMolchanov on Aug 29, 2009 10:11 PM

  • How to determine 0calday from 0fiscper field ?

    we have a requirement where the user will enter the calmonth variable in the user input, and need to get the amount for top 20 customer's on sales, in the report. The problem is we dont have calmonth in the infocube. we have only 0fiscper and 0fiscalyear , and -0calday.
    0calday is mapped to the transaction date. No calmonth in the infocube and we cannot add it now. its too late.
    The columns we need in the report are ( orange color are column names)
    customer        YTD           DEC 2012 ( sales amount) ....for top 20 customers. like
    customer 1      99999            900
    customer 2      55555             200
    customer 20      11111             234
    sample data is as follows: ...what I want is user will input 0calmonth and 0fiscalyear. and I need to display the data for that month . Please advise how to achieve it. YTD - is 1st of jan of the current year till today's date right ? Irrespective of the user entry variable. Is that right ?

    Now as per your suggestion, I have restricted Z_FY_INPUT to the KF, and created another ZYTD and put this as Z_FY_INPUT as replacement path and and put offshet as 2 to 4 on it.
    Again i will clarfiy:
    First selection--Revenue KF--Fiscper--variable--User input--Z_FY_INPUT--This selection will give the value of that period which user is entering.If user enters 004.2014 so it will give value for the same.Correct!
    Now for YTD we need data from 001.2014 to 004.2014. correct..
    A) Take the revenue KF--Drag and drop 0fiscper --Restrict--Show--Value ranges---Less than or equal to--Choose the variable Z_FY_INPUT.
    B) Now again restrict the above selection with 0fiscyear--Create a characteristic variable with replacement path--Follow steps with screenshot as mentioned in the document.
    So basically for YTD you have restricted with two variables based respectively on 0fiscper and 0fiscyear.
    How this works let me explain that also.
    In Part A i have restricted the kf with the same user input variable which you used in first selection but the range less that or equal to.
    Till this stage if user enters 004.2014 then it will bring all the data which is less or equal to the user input which is not our requirement.We need data from the starting of the year upto user entered value.
    In Part B we have restricted the same selection with replacement path variable on 0fiscyear--We are replacing it with variable entered by user.
    So now this part will hold only the year i.e 2014..How--user entered 004.2014.
    Internal format K42014004--Offset we have given 2 length 4..
    Which gives 2014.
    On combining both the parts we get data data from the starting of the year up to the user entered value.
    I tried my level best to explain you how this works and believe me i have created YTD using the same method in so many queries and it really works as desired.
    Regards,
    AL

  • How to determine year from a date?

    Hi experts,
    How can I deterimine the year of a datum?
    Is it always working if I determine the first 4 characters of a date?
    I mean you can write the date in many forms like. yyyy/mm/dd or dd/mm/yyyy
    So if I choose the first 4 characters the results will be different in the two cases mentioned here. How can I determine the year exactly?

    If you use internal format (fields type D, DATS) the year is always in the first 4 characters.
    Else convert into internal format first. ([CONVERT_DATE_TO_INTERN_FORMAT|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=convert_date_to_intern_format&adv=false&sortby=cm_rnd_rankvalue], [CONVERT_DATE_INPUT|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=convert_date_input&adv=false&sortby=cm_rnd_rankvalue], [CONVERSION_EXIT_DATEX_INPUT|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=conversion_exit_datex_input&adv=false&sortby=cm_rnd_rankvalue], etc.)
    Regards

  • How to determine number from Restricted call message

    Is there a way I can find out who keeps calling me from a restricted number?
    >Thread branched. Post and Subject edited to remove question concerning the thread this post came from<
    Message was edited by: Verizon Moderator><

        Hi there MirankaVanHintum,
    Let's put a stop to those pesky restricted calls! We have a great option to prevent this from happening.  We have a service called Family Base!
    Check it out here
    Thanks, BobbyS_VZW
    Follow us on Twitter @VZWSupport

  • How to - Determining mimetype from fileextension?

    Hallo,
    i want to do something like this
    import javax.activation.MimetypesFileTypeMap;
    import java.io.File;
    class GetMimeType {
    public static void main(String args[]) {
    File f = new File("example.gif");
    System.out.println("Mime Type of " + f.getName() + " is " + new MimeTypesFileTypeMap().getContentType(f));
    but in my jdeveloper i don't have javax.activation.MimetypesFileTypeMap.
    What can i do?
    Any help is appreciated.

    If I am understanding your problem, I think all you have to do is to get ahold of the .jar file which contains the class you want to call, put it on your computer somewhere, right-click your project, select Project Properties..., open the Libraries category, and include your .jar file in your project's class path.
    Hopefully this helps...if not let me know please...

  • How to determine most recent date from the date column of internal table

    Dear friends
    would you like to tell me. how i determine the most recently changed record by looking at date and time from internal table i am not supposed to sort the table by date and time... I must check date and time with other records date and time to determine which record is most recently changed...
    here the scenario is.
    id idnumber chdate chtime
    1 123456 20060606 135312
    2 123456 20060606 135900
    3 123456 20060606 132300
    4 123457 20060606 140000
    5 123457 20060606 142500
    in the above scenario i must keep in my mind that the most recently changed record is identical to its idnumber i can say that:
    the record should be fetched this way
    id idnumber chdate chtime
    3 123456 20060606 132300
    5 123457 20060606 142500
    because here the id 3 is the most recently changed in the idnumber 123456
    where id 5 is the most recently changed in the idnumber 123457
    please help me to determin how i am supposed to carry out this task any suggestion, code will be great help of mine.
    regards
    Naim

    After testing my suggestion above, I realized that it doesn't work because the delete adjacent actually will keep the first one and delete the rest.  I'm working with Srinivas's code a bit now,  I think it is almost what you want.  I am under the impression that you dont' want to HIGHest date/time, but just the last record of the sequence, if this is the case, then this code will help.  Here we will assign an index to each record per the idnumber, that way we can sort it and get the lastest record.
    report zrich_0001.
    types: begin of itab_type,
            id       type i,
            idnumber type i,
            chdate   like sy-datum,
            chtime   like sy-uzeit.
    types: end of itab_type.
    types: begin of itab_type2,
            id       type i,
            idnumber type i,
            index    type i,
            chdate   like sy-datum,
            chtime   like sy-uzeit.
    types: end of itab_type2.
    data: itab     type table of itab_type with header line,
          itab2    type table of itab_type2 with header line,
          prev_rec type itab_type.
    data: v_id type i.
    start-of-selection.
      itab-id       = 1.
      itab-idnumber = 123456.
      itab-chdate   = '20060606'.
      itab-chtime   = '135312'.
      append itab. clear itab.
      itab-id       = 2.
      itab-idnumber = 123456.
      itab-chdate   = '20060606'.
      itab-chtime   = '135900'.
      append itab. clear itab.
      itab-id       = 3.
      itab-idnumber = 123456.
      itab-chdate   = '20060606'.
      itab-chtime   = '142500'.
      append itab. clear itab.
      itab-id       = 4.
      itab-idnumber = 123457.
      itab-chdate   = '20060606'.
      itab-chtime   = '140000'.
      append itab. clear itab.
      itab-id       = 5.
      itab-idnumber = 123457.
      itab-chdate   = '20060606'.
      itab-chtime   = '120000'.
      append itab.
      clear itab.
    <b>  data: counter type i.
    * Assign an index to each row per idnumber
      loop at itab.
        on change of itab-idnumber.
        if sy-tabix > 1.
          clear counter.
          endif.
        endon.
        clear itab2.
        move-corresponding itab to itab2.
        counter = counter + 1.
        itab2-index = counter.
        append itab2.
      endloop.
    * Sort it and get rid of older records.
      sort itab2  by idnumber ascending
                     index descending.
      delete adjacent duplicates from itab2 comparing idnumber.</b>
      read table itab2 with key idnumber = '123456'.
      write:/ itab2-chdate, itab2-chtime.
      read table itab2 with key idnumber = '123457'.
      write:/ itab2-chdate, itab2-chtime.
    Regards,
    Rich Heilman

  • How to determine the Support Team from Reported-by?

    Hi All,
    We need to determine the support team based on reported-by.
    I have concluded it is only possible by customization of developing ZBADI from these threads:
    Re: How to determine the Support Team from the Reported by?
    Automatic determination support team based on own specs?
    Re: Route tickets based on Message creaters's location
    So we have created ztable which has relation between SAP component, Reported-by and Support Team.
    Now i need to develope a ZBADI  and assign to the action definition SLFN0001_ADVANCED_FIND_PARTNER(i hope).
    Can anyone help me out with the piece of code. Because i don't which FMs to be called for read and update the support desk message.
    Note: Action definition SLFN0001_ADVANCED_FIND_PARTNER uses method call Z_CRM_DNO_PARTNER_1(which is a copy of CRM_DNO_PARTNER_1 and applied some correction as per note: 1041455).
    Thanks in advance.
    Regards
    Sanjai

    closing this thread.

  • How to determine client locale from the mail?

    How to determine client locale(language/country) from the mail(header)?
    I investigate that some mails have not got any content-language header...
    Also, If mail is in multipart , I cannot get it throught the contentType....
    e.g some header contain header like this: content-Type: "text/html; charset=Big5"
    but some are : content-Type: multipart/mixed; boundary......";
    So, how can I know the client locale?
    Thanks

    You should be able to get the charset from the content type, as u said. the reason some types don't have a charset, such as multipart/* types, is because they don't contain any content on their own! they only contain nested body parts, each of which should have a charset specified. you're gonna have to get the charset by following the mail structure recursively.

  • How to determine from PL/SQL which processes are running

    Hi,
    I would like to find out which processes are runing. Is there any way how to determine this directly from PL/SQL? I know I can run external C libraries, but if there is another way, that would be great.
    Thanks for help, Dan

    Rahul India wrote:
    YOu might want to check these
    http://www.dba-oracle.com/plsql/t_plsql_v$.htm
    http://www.dba-oracle.com/t_plsql_monitoring.htm
    Please DO NOT post links to commercial websites. It is a breach of the Terms of Use of the forums.
    Such websites tend to provide snippits or excerpts of information in order to try and get people to purchase their products (books or whatever) or services.
    There are plenty of good resources out there, including the Oracle documentation, other threads on these forums with similar questions and solutions, or expert's blogs or websites that are not trying to sell something.

  • How to determine the download media required from my License key?

    Hi
    After recently rebuilding a dead PC,  The user has advised me she used to use Illustrator.
    Unfortunately the user does not have the install media available.
    Support advised my license key is a volume license for Design Standard.
    I have downloaded Design Standard (Universal) but the Licence key is not accepted.
    Can anyone advise how to determine the correct download based on my License key?
    Many thanks

    Some times you may need to sign in to volume licensing account and download
    refer
    Adobe Licensing Website | Serial numbers | Orders | Accounts

  • How to determine Oracle_Home default from multiple home installation?

    Does anyone know how to determine the current Oracle Home default in the registry when multiple Oracle Home exists?
    Both 8i and multiple 9i Version X's exist on a client machine. We need to determine the current default oracle home to determine path for various drivers.
    In analyzing the Oracle Home registry keys I have been unable to find a means for identifying the current Oracle Home default.

    Thank you for you reply, your advice is good. Unfortunately our application has to deal with all kinds of Oracle configurations and one of those is the multi-home issue. We have looked throughout the registry particular in the HKLM\SOFTWARE\ORACLE|ALL_HOMES\
    but have not found any entry that would indicate a default home. One two different system installation of multiple client installations there is no DEFAULT_HOME. We do have the HOME0, HOME1, ... HOME4 but, these are just sequencial based on when they where installed not on the order of preference or any default setting. Problem is our application needs to know the default home to locate the appropriate drives to use and appropriate connects service to look-up(tnsname) also.
    Thanks.

  • How to download file from application server

    Hi Experts,
                  I developed report and execute in background mode. for this i used Open dataset transfer and close dataset . i got the requried output . But in this case user want downloaded file on presentation server so can anyone tell me How to download file from application server?
    i know it is possible through Tcode CG3Y. but i want code in program.

    This code will download a file to your Client package by package, so it will also work for huge files.
    *& Report  ZBI_DOWNLOAD_APPSERVER_FILE
    REPORT  zbi_download_appserver_file.
    PARAMETERS: lv_as_fn TYPE sapb-sappfad
    DEFAULT '/usr/sap/WBP/DVEBMGS00/work/ZBSPL_R01.CSV'.
    PARAMETERS: lv_cl_fn TYPE string
    DEFAULT 'C:\Users\atsvioli\Desktop\Budget Backups\ZBSPL_R01.CSV'.
    START-OF-SELECTION.
      CONSTANTS blocksize TYPE i VALUE 524287.
      CONSTANTS packagesize TYPE i VALUE 8.
      TYPES ty_datablock(blocksize) TYPE x.
      DATA lv_fil TYPE epsf-epsfilnam.
      DATA lv_dir TYPE epsf-epsdirnam.
      DATA ls_data TYPE ty_datablock.
      DATA lt_data TYPE STANDARD TABLE OF ty_datablock.
      DATA lv_block_len TYPE i.
      DATA lv_package_len TYPE i.
      DATA lv_subrc TYPE sy-subrc.
      DATA lv_msgv1 LIKE sy-msgv1.
      DATA lv_processed_so_far TYPE p.
      DATA lv_append TYPE c.
      DATA lv_status TYPE string.
      DATA lv_filesize TYPE p.
      DATA lv_percent TYPE i.
      "Determine size
      SPLIT lv_as_fn AT '/' INTO lv_dir lv_fil.
      CALL FUNCTION 'EPS_GET_FILE_ATTRIBUTES'
        EXPORTING
          file_name      = lv_fil
          dir_name       = lv_dir
        IMPORTING
          file_size_long = lv_filesize.
      "Open the file on application server
      OPEN DATASET lv_as_fn FOR INPUT IN BINARY MODE MESSAGE lv_msgv1.
      IF sy-subrc <> 0.
        MESSAGE e048(cms) WITH lv_as_fn lv_msgv1 RAISING file_read_error.
        EXIT.
      ENDIF.
      lv_processed_so_far = 0.
      DO.
        REFRESH lt_data.
        lv_package_len = 0.
        DO packagesize TIMES.
          CLEAR ls_data.
          CLEAR lv_block_len.
          READ DATASET lv_as_fn INTO ls_data MAXIMUM LENGTH blocksize LENGTH lv_block_len.
          lv_subrc = sy-subrc.
          IF lv_block_len > 0.
            lv_package_len = lv_package_len + lv_block_len.
            APPEND ls_data TO lt_data.
          ENDIF.
          "End of file
          IF lv_subrc <> 0.
            EXIT.
          ENDIF.
        ENDDO.
        IF lv_package_len > 0.
          "Put file to client
          IF lv_processed_so_far = 0.
            lv_append = ' '.
          ELSE.
            lv_append = 'X'.
          ENDIF.
          CALL FUNCTION 'GUI_DOWNLOAD'
            EXPORTING
              bin_filesize         = lv_package_len
              filename             = lv_cl_fn
              filetype             = 'BIN'
              append               = lv_append
              show_transfer_status = abap_false
            TABLES
              data_tab             = lt_data.
          lv_processed_so_far = lv_processed_so_far + lv_package_len.
          "Status display
          lv_percent = lv_processed_so_far * 100 / lv_filesize.
          lv_status = |{ lv_percent }% - { lv_processed_so_far } bytes downloaded of { lv_filesize }|.
          CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
            EXPORTING          "percentage = lv_percent - will make it fash
              text = lv_status.
        ENDIF.
        "End of file
        IF lv_subrc <> 0.
          EXIT.
        ENDIF.
      ENDDO.
      "Close the file on application server
      CLOSE DATASET lv_as_fn.

Maybe you are looking for