Get name of Chain in the embedded ABAP program

Dear all,
Following situation:
There is in a process chain a step with ABAP (which is executing a report).
Is it possible for the ABAP program to resolve the name of the process chain, by which the program was started?
(Without inserting in the variant a hard input parameter.)
Best regards,
Alex

search in table RSPCVARIANT for your program as follows
- field TYPE  = "ABAP"
- field FNAM = "PROGRAM"
- field LOW   = <program name>
take the value of field VARIANTE and use this in table RSPCPROCESSLOG (enter a date selection for BATCHDATE as well)
take the most recent entry (should be the one you're actually running at that moment)
via field LOG_ID, retrieve CHAIN_ID (technical name of your process chain) in table RSPCLOGCHAIN

Similar Messages

  • Extract Process Chain ID/Name that an embedded ABAP program is run from?

    Hi all,
    I have created some Process Chains in SAP BW where I have incorporated some ABAP program Process Types that uses the same ABAP program.
    In these embedded ABAP program Process Types I need to extract the name of the Process Chain it runs from (ID, Technical Name, Descirption).
    Is there any way this is possible to do?
    One solutions that is not possible to implement (due to parallell runs of process chains that uses the same ABAP program) is the following:
    search in table RSPCVARIANT for your program as follows
    - field TYPE = "ABAP"
    - field FNAM = "PROGRAM"
    - field LOW = <program name>
    take the value of field VARIANTE and use this in table RSPCPROCESSLOG (enter a date selection for BATCHDATE as well)
    take the most recent entry (should be the one you're actually running at that moment)
    via field LOG_ID, retrieve CHAIN_ID (technical name of your process chain) in table RSPCLOGCHAIN
    So my question here is:
    -Is there any way to extract the Process Chain ID/Name that an embedded ABAP program Process Type is run from?
    Thanks beforhand for your feedback!
    regards
    Oddmar

    Hi Erik,
    I am stuck up with a similar requirement, wherein I have an ABAP program in my process chain and I need the technical name of the process chain in the ABAP program at run-time.
    Did you get a solution or work-around for this scenario?
    Thanks in advance.
    Regards,
    Chetana.

  • After I optimize my pdf I get this error  "Cannot extract the embedded font 'FONT NAME' Some characters may not display or print correctly.

    After I optimize my pdf I get this error  "Cannot extract the embedded font 'FONT NAME' Some characters may not display or print correctly.

    This Acrobat forum may be a better place to ask: https://forums.adobe.com/community/acrobat/creating__editing_%26_exporting_pdfs

  • Getting Data from Maintenance view V001N into ABAP program

    Hello Experts,
    I have to fetch data from the maintenance view V001N in my ABAP program.  I have used select statement in my program but I am getting a syntax error  'V001N is not defined in the ABAP Dictionary as a table, projection view or database view. '.  V001N is a Maintenance view.
    Can anybody help me out how to get the data from that maintenance view into the internal table of my ABAP program.
    Regards.

    Sunil,
    check these threads
    https://forums.sdn.sap.com/click.jspa?searchID=18906946&messageID=6074746
    https://forums.sdn.sap.com/click.jspa?searchID=18906946&messageID=6088233
    so query on the tables which are used in the view
    Thanks
    Bala Duvvuri

  • Multiple User Exits at Same point of the Same ABAP Program

    Dear ABAPers,
    I, a Basis person, want to know if it's possible to have multiple User Exits at the same point of the same SAP ABAP program; and further if access to those exits can be controlled through authorization for different user groups, i.e. different user groups may access different user exits.
    Your professional help is greatly appreciated.
    Best regards,
    Joshua Zhang

    Hi,
    You may follow the link on how to implement a BADI over a user exit. If you create a badi over a user exit, you can create multiple implementations.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0456c54-0901-0010-f0b3-cd765fb99702;jsessionid=(J2EE3414800)ID0654822050DB10553917632140865601End?overridelayout=true
    Regards
    Prasenjit

  • How to get total physical memory on the system thru program

    Hi,
    I have used kstat for identifying physical & virtual memory. I am able to get the data items of vminfo_t, but vminfo_t doesnot give the total physical memory all I get fro vminfo_t is
    free memory, swap reserved, swap allocated, swap available and swap free.
    Can someone help me in getting total physical memory of the system.
    Thanks,
    Ram

    I do not believe you can get the physical number of pages through kstat. However, you can get it through sysconf(3C). The argument SCPHYS_PAGES will return the number of pages in the system.
    See the sysconf(3C) manpage for more information.
    Alan
    Sun Developer Technical Support
    http://www.sun.com/developers/support

  • How to get name of class that the JVM was started with ?

    Assume I have class foo with the standard main method.
    I also have classes ding and dong, they extend foo.
    The JVM is started with either ding or dong as the 'main' class. Since neither ding nor dong directly implement main, the actual main method being executed is foo's.
    In the main method of foo I want to construct an instance of either ding or dong, depending on which the JVM was started with. Since I'm in a static context, I can't do anything with 'this'. Is there another way to get the name of the 'main' class from the JVM so that I can construct an instance of it ?

    The idea behind all of this is that the developer of
    Ding and Dong should not have to know anything about
    foo, in particular it's constructors. But if Ding and Dong are subclasses of Foo, then developers must know about Foo. If you expect developers to extend a framework without having a well-defined interface to that framework, you are probably heading for trouble.
    To be able to
    privatize the constructors, construction of the
    concrete class has to take place in foo.If Ding and Dong are subclasses of Foo, then you can not make all of Foo's constructors private.
    Of course I could have a method in Ding and Dong that
    calls a static method in foo into which the Ding and
    Dong instance pass their class, but then I'd have
    identical implementations of this method in Ding and
    Dong. Yes you would (well, not identical, but very similar). Like I said, you could do this programmatically with AOP, or you could probably do it dirtily using stack traces (though with it being a single hit at startup, you might not consider it being quite so dirty).
    But: the point of inheritance is that common
    functionality goes into superclasses. I disagree. The important thing about inheritance is that classes share an interface, and that methods can be polymorphically inherited, allowing new functionality to be 'plugged in' in the future, and even at runtime.
    Also, in
    general one wouldn't make methods static if a class
    reference is needed (or one would make it an
    argument), but Sun didn't consult me when they
    designed the main method :-(I still don't see why you need to do what you want to do. It appears that all you are after is the ability to start your program using a command line like
        java com.mypackage.Ding
    instead of
        java com.mypackage.Foo com.mypackage.Ding
    or
        java com.mypackage.Foo Ding.properties
    or something else along these lines.
    Since you must know the name of the class you want to use at the time you want to use it, why can't you just pass the name as an argument, or start up using some properties file, or a shell script?

  • Get name (and properties) of running job in program

    Hi all,
    we have some weird behaviour in our system. We know the methodcreating havoc but we don not know which background job may be the trigger.
    In the method, we want to determine the active job (if any) that triggers this.
    We integrated reporting of SY-SYSID , SY-MANDT and CALL FUNCTION 'SYSTEM_CALLSTACK' to get the full call stack. Additionally we want the details about a job if it is run in background (SY-BATCH).
    Any idea?
    Kind regards,
    Clemens

    Try this FM BP_FIND_JOBS_WITH_PROGRAM.
    Regards,
    Joy.

  • How Can I perform the external abap programe transmit the internal table in

    Hi,all
    In Sapscript,I want calculate a internal table and return the changed table to Sapscript
    I know used the transmit result variable for example:
    /:PERFORM GET_MAKTX IN PROGRAM ZXX
    /:USING &MATNR&
    /:CHANGING &MAKTX&
    /:ENDPERFORM.
    How can I set Using with a table?
    Thanks
    Sun

    Hi,
    As per my knowledge it is not possible to pass the entire table at a time using PERFORM in PROGRAM ,,, USING and CHANGING.
    Solutions:
    1)  If possible do the same thing in the Print Program:
        using CONTROL_FORM call element and print in the script
    2) if you know the all table entries.:  Pass all records at time:
    Ex: PERFORM Pxxxx in PROGRAM PROGXXXX
          USING <MATNR1>
                    <MATNR2>
                    <MATNR3>..............
          CHANGING < MAKTX1>
                            <MAKTX2>
                             <MAKTX3>............
    ENDPERFORM

  • From which table could i get all the Variants of a specific ABAP program?

    Hi,
    From which table could i get all the Variants name which belong to a specific ABAP program?
    Thanks.

    Hi,
    Check the table starting with TVAR*.
    Regards,
    Atish

  • From which table could i get all the Variants of a ABAP program?

    Hi,
    From which table could i get all the Variants name which belong to a specific ABAP program?
    Thanks.

    Hi Hoo,
    You can get the variants of a ABAB Program from table <b>VARID</b>. Give the report name to the VARID-REPORT field and you will the list of variants for this report under field VARID-VARIANT and VARID-ENAME is the user who created the variant.
    Otherwise, You can use the function module RM_GET_VARIANTS_4_REPORT_USER to get the variants of a report
    Thanks,
    Vinay

  • Cannot extract the embedded font 'FONT NAME' Some characters may not display or print correctly

    After I optimize my pdf I get this error  "Cannot extract the embedded font 'FONT NAME' Some characters may not display or print correctly.
    Acrobat X 10.1.10
    I am optimizing to create a smaller lores file to email .

    I am not trying to remove the font.
    I am trying to reduce the size of the file to email.
    After optimizing the file this error pops up.
    I have tried changing the setting for fonts but no success.

  • ABAP Program Termination in Process Chain

    Hello
    in my process chains i have one abap program and it is getting dump while loading.
    where can i check whether this program got terminated in this particular chain.
    as i have many chains i am not able to check in each and every chain.
    kindly let me know where to check the program termination in process chains.
    do i have any chance to set an automatic process for checking the termination of the program.
    regards,
    Ala.

    Hi Ala,
    If u know the process chain name, u can directly see log view of that process chain and right click on that failed ABAP program click "display mesaged". Now note down the error message and see that in st22.
    If u dont know the process chain name..
    In SM37 go to the job log for that pirticular job which is failed, it gives u tha program name and varient name.
    now goto SE38 and give that program name and variant then click on display.It gives u process chain name.
    Hope it helps.

  • CONVT_NO_NUMBER Dump error in Process Chain Abap Program

    Hi Experts,
    The daily running process chain is failed at ABAP program with the error CONVT_NO_NUMBER.
    The reason for the exception is:                                       
    The program attempted to interpret the value "40-799" as a number, but 
    since the value contravenes the rules for correct number formats,   
    this was not possible.
    I am not familiar with ABAP.
    Please suggest me how to proceed..
    Thanks
    <BMP>

    Hi,
    In ST22
    Short text                                  
        Unable to interpret "40-799" as a number.
    Error analysis                                                                     
        An exception occurred that is explained in detail below.                       
        The exception, which is assigned to class 'CX_SY_CONVERSION_NO_NUMBER', was not
         caught in                                                                     
        procedure "FM_DIR_LIST" "(FORM)", nor was it propagated by a RAISING clause.   
        Since the caller of the procedure could not have anticipated that the          
        exception would occur, the current program is terminated.                      
        The reason for the exception is:                                               
        The program attempted to interpret the value "40-799" as a number, but         
        since the value contravenes the rules for correct number formats,              
        this was not possible.   
    I am trying post the code but SDN is not accepting more than 15000Char's
    So can i get ur (mail) details
    So that i can send u the exact code...
    Thanks,
    BMP

  • Abap program - end of process chain

    Hi,
    I have a requirement. At the end of each process chain, the ABAP program must trigger email.
    The process chains are having naming format of Z<Module name>. Ex: SD process chain will have ZSD, PS process chain will have ZPS etc.
    Now we are reading a table based on the module and identify the users, and to those users email should be sent.
    Now i am unable to identify the name of the process chain at run time from my ABAP program.
    Is there any way to identify the name of the process chain at runtime from ABAP program?
    Thanks.

    Hi,
    Your question is not clear can you please provide few more detail.
    for sending mail to users you can use "Varient" whatever you required. I am not sure what table you are using.
    Regards,
    satya.

Maybe you are looking for

  • Ipod touch 4 not charging

    My ipod touch 4 is not charging at all. I just got it for Xmas. Tried plugging in to computer nothing happens. Tryed using wall plug nothing happens?

  • Problems in Retrieve Server's Data from Client through RMI

    //I feel that this question quite challenging for me. maybe it is easy for you all. anyway, so anybody if know it, pls point out my mistake and give some opinion on my programs.thanks.... /*I have written one retrieve method in my server that is goin

  • Call Actionscript function from Javascript

    Can anyone show me a simple example of calling an actionscript function from within javascript? Everything I have found searching online refers to using the ExternalInterface but I was sure I also read that Adobe Air does not support it. I am current

  • How do I view attachments in iCal

    Hi All, I'm trying to use iCal for my work appointments. My appointments comes with files attached (schedules, notes, all in rtf format) and when I open one, highlight the file attached (that at this point has lost his original name and became someth

  • Desperately trying to get old e-mails back

    Hi All, If you scroll down you will see a thread I started about losing my preferences and permission to my home directory after trying to change the name. I have now lost all preferences to do with Mac mail and need NEED to retrieve my old e-mails t