LDB_PROCESS for PNP

Hi all,
I am trying to use LDB_PROCESS function module for logical database PNP but am not sucessful in it.
I am pasting my code below:
Moderator message - Please respect the 2,500 character maximum when posting. Post only the relevant portions of code
The problem i am facing is that the FM is processed perfectly but callback routine is not called.
Kindly help...
Seema Peswani
ABAP HR
Edited by: Rob Burbank on Nov 13, 2009 9:43 AM

CALLBACK_WA-LDBNODE = 'PERNR'.
CALLBACK_WA-GET = 'X'.
*CALLBACK_WA-GET_LATE = 'X'.
CALLBACK_WA-CB_PROG = SY-REPID.
CALLBACK_WA-CB_FORM = 'CALLBACK_LFB1'.
APPEND CALLBACK_WA TO CALLBACK.
SELTAB_WA-KIND = 'S'.
SELTAB_WA-SELNAME = 'KD_ABKRS'.
LOOP AT S_ABKRS.
  MOVE-CORRESPONDING S_ABKRS TO SELTAB_WA.
  APPEND SELTAB_WA TO SELTAB.
ENDLOOP.
CALL FUNCTION 'LDB_PROCESS'
  EXPORTING
    LDBNAME                     = 'PNP'
    VARIANT                     = ' '
    EXPRESSIONS                 = TEXPR
    FIELD_SELECTION             = FSEL
    DYN_NODE_TYPES              = DYN_NODE_TYPES
  TABLES
    CALLBACK                    = CALLBACK
    SELECTIONS                  = SELTAB
  EXCEPTIONS
    LDB_NOT_REENTRANT           = 1
    LDB_INCORRECT               = 2
    LDB_ALREADY_RUNNING         = 3
    LDB_ERROR                   = 4
    LDB_SELECTIONS_ERROR        = 5
    LDB_SELECTIONS_NOT_ACCEPTED = 6
    VARIANT_NOT_EXISTENT        = 7
    VARIANT_OBSOLETE            = 8
    VARIANT_ERROR               = 9
    FREE_SELECTIONS_ERROR       = 10
    CALLBACK_NO_EVENT           = 11
    CALLBACK_NODE_DUPLICATE     = 12
    CALLBACK_NO_PROGRAM         = 13
    CALLBACK_NO_CBFORM          = 14
    DYN_NODE_NO_TYPE            = 15
    DYN_NODE_INVALID_TYPE       = 16
    OTHERS                      = 17.
IF SY-SUBRC NE 0.
  WRITE: 'Exception with SY-SUBRC', SY-SUBRC.
ENDIF.
FORM CALLBACK_LFB1 USING NAME TYPE LDBN-LDBNODE
                         WA TYPE PERNR
                         EVT TYPE C
                         CHECK TYPE C.
  CASE EVT.
    WHEN 'G'.
      WRITE: / WA-PERNR.
   WHEN 'L'.
     ULINE.
  ENDCASE.
ENDFORM.                    "CALLBACK_PERNR

Similar Messages

  • How to hide PNP selection windows and set default values for PNP.

    Hi expert,
         I am using HR logical database PNP, but I don't want to display selection windoes for running program on PNP, whereas I want to set default value for some selection items in the program. could you please tell me how to get those two targets?
    Many Thanks,

    Hi
    You have mentioned 2 things.
    1. Don't want selection windows for running program for PNP - this can be achieved using the HR Report category - You can get more details on HR Report Category on
    HR Report Category
    2.  I want to set default value for some selection items - This you need to achieve in initialization event of your program.
    How you can get this can be explained by INITIALIZATION (SAP Library - ABAP Programming (BC-ABA))
    Thanks,
    Sreeram

  • Standard screen for PNP logical database

    hello All,
    I am using PNP logical database and i have modified the standard selection screen for PNP.
    But now there is a button that appears , although the rest is supressed as i wanted it to.
    Our forums active contrubutor suresh datti has provided me a solution before to go to sytem then status and then click screen 100 then invisible the push button and activate and re-execute the program. The method seems to work fine. But surprisingly after some time the button appears again..
    any idea..??
    thanks,
    Reena..

    >>>I do not knw how to create a variant or how variant are related to selection screens..can u please elaborate..
    Don't worry..then its not the issue..
    anyway Pl take a look at the following <a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/c0/980374e58611d194cc00a0c94260a5/frameset.htm">SAP Help</a> on Variants.
    ~Suresh

  • Authorization checks for PNP LDB

    question    : how to validate authorization checks for pnp logical database?
    2 nd question: hr report
    this report is basically for salary survey. in this i had so many fields can any body let me know how
    can i form the internal tables. and i have to display overall 150 fields in csv file for that
    how can i take in to the final internal table.
    what is the logic behind this:
    T71JPR09-JOBCODE
    PA0000-PERNR
    HRP1000-STEXT
    P0006-PSTLZ
    PA0008-ANSAL * 100 / PA0008-BSGRD
    PA0015-BETRG
    PA0761-LTEXT  WHERE PA0761-CPLAN = LTI PLAN PSU YEAR 1
    PA0761-GRADT  WHERE PA0761-CPLAN = LTI PLAN PSU YEAR 1
    PA0761-ZZGRANT WHERE PA0761-CPLAN = LTI PLAN PSU YEAR 1
    PA0761-LTEXT WHERE PA0761-CPLAN = LTI PLAN esu YEAR 1
    like that i had.
    please give me the steps how can i proceed.

    Hi,
    The PNP database will take care of authorization check. It will not execute if used does not have authorizations.
    Hope this helps.

  • Help on FM LDB_PROCESS for LDB FTI_TR_PL_CF

    Hi everyone,
    Good day!
    I am currently working on INFOSETS for Treasury Module and there's a requirement to use function module LDB_PROCESS for logical database FTI_TR_PL_CF. 
    I have not worked on the said function module before and i am not familiar with the logical database.
    In this regard, I would like to ask you good Sirs and Madams to give me an overview or any input that would give me a clear picture on what needs to be done for this requirement.
    Thanks so much in advance.
    God bless!
    Regards,
    Mike

    Hi Suresh,
    Thanks for your help. 
    Does anyone know a link that shows how to create infoset query using the FM LDB_PROCESS? I have been working on this for days now and I'm still kind of puzzled.  The requirement is to add output fields to the query but the fields to be displayed are to be retrieved from an outside Logical database. Hope you guys can also help me on this.
    Thanks so much in advance. God bless!
    Regards,
    Mike

  • Creating a New Report Category for PNP

    Hi,
    Could anyone please help me in knowing the different steps involved while creating a custom and new report category for PNP LDB?
    Thanks,
    Sandeep.

    Hi create a program or use an existing program, which has logical database pnp.
    go to se38-> prog name->change-> goto->attributes-> HR report category->create report category->new entries.
    check and uncheck what all fields you require for your report
    now save the settings.
    This will serve your purpose. reward points will be appriciated.
    Regards,
    Quavi

  • Occasional hang at boot while scanning for PnP cards

    Sometimes my media center won't boot. It hangs at:
    isapnp: Scanning for PnP cards...
    This only happens once in a while (once every 10 or 20 boots). The system is an ION based system, it does not happen on my desktop system? Anyone seen this behaviour? Something ACPI related maybe? Thanks!

    i know, but i really dont know what else to include. I dont know what log files i should be reading. Im new to Arch
    EDIT: I just checked my /var/log/slim.log file and i notice every time the system fails it has the message::
    slim: unexpected signal 15
    EDIT: i also get the following message in slim.log:
    slim: pam_end: system error
    Last edited by yuggoth (2013-03-18 21:37:03)

  • Ldb_process and PNP

    Hi,
    could you give me a working example of using FM LDB_PROCESS with logical dabase PNP, please? Every example, which I found there dont work and I dont know why.
    Thanks in advance
    Krzysztof

    hi,
    Have you solved this problem yet or not? Please do reply. I am stuck with the same problem
    would appreciate your effort.
    thank you for your time and support.
    Regards,
    Seema Peswani

  • FM LDB_PROCESS with PNP or PNPCE does not work...

    This is the code. This do nothing, no errors, no results.(The system have employees.)Please help with some advice.
    José.
    TABLES: PERNR.
    TYPE-POOLS: RSDS, RSFS.
    DATA: CALLBACK TYPE TABLE OF LDBCB,
          CALLBACK_WA LIKE LINE OF CALLBACK.
    DATA: SELTAB TYPE TABLE OF RSPARAMS,
          SELTAB_WA LIKE LINE OF SELTAB.
    DATA: TEXPR TYPE RSDS_TEXPR,
          FSEL  TYPE RSFS_FIELDS.
    Refresh: Callback.
    Clear: Callback.
    CALLBACK_WA-LDBNODE     = 'PERNR'.
    CALLBACK_WA-GET         = 'X'.
    *CALLBACK_WA-GET_LATE    = ' '.
    CALLBACK_WA-CB_PROG     = SY-REPID.
    CALLBACK_WA-CB_FORM     = 'PROG_PERNR'.
    APPEND CALLBACK_WA TO CALLBACK.
    Refresh: Seltab.
    Clear: Seltab.
    SELTAB_WA-SELNAME = 'PERNR'.
    SELTAB_WA-SIGN    = 'I'.
    SELTAB_WA-KIND    = 'P'.
    SELTAB_WA-OPTION  = 'EQ'.
    CLEAR SELTAB_WA-LOW.
    CLEAR SELTAB_WA-HIGH.
    APPEND SELTAB_WA TO SELTAB.
    Refresh: TEXPR, FSEL.
    Clear: TEXPR, FSEL.
    CALL FUNCTION 'LDB_PROCESS'
      EXPORTING
        LDBNAME                     = 'PNP'
        EXPRESSIONS                 = TEXPR[]
        FIELD_SELECTION             = FSEL[]
      TABLES
        CALLBACK                    = CALLBACK
        SELECTIONS                  = SELTAB
      EXCEPTIONS
        LDB_NOT_REENTRANT           = 1
        LDB_INCORRECT               = 2
        LDB_ALREADY_RUNNING         = 3
        LDB_ERROR                   = 4
        LDB_SELECTIONS_ERROR        = 5
        LDB_SELECTIONS_NOT_ACCEPTED = 6
        VARIANT_NOT_EXISTENT        = 7
        VARIANT_OBSOLETE            = 8
        VARIANT_ERROR               = 9
        FREE_SELECTIONS_ERROR       = 10
        CALLBACK_NO_EVENT           = 11
        CALLBACK_NODE_DUPLICATE     = 12
        OTHERS                      = 13.
       case sy-subrc.
          when 1.  raise ldb_not_reentrant.
          when 2.  raise ldb_incorrect.
          when 3.  raise ldb_already_running.
          when 4.  raise ldb_error.
          when 5.  raise ldb_selections_error.
          when 6.  raise ldb_selections_not_accepted.
          when 7.  raise variant_not_existent.
          when 8.  raise variant_obsolete.
          when 9.  raise variant_error.
          when 10. raise free_selections_error.
          when 11. raise callback_no_event.
          when 12. raise callback_node_duplicate.
        endcase.
      if sy-subrc ne 0.
          message id sy-msgid type sy-msgty number sy-msgno
               with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    *&      Form  PROG_PERNR
    *       text
    *      -->NAME       text
    *      -->WA         text
    *      -->EVT        text
    *      -->CHECK      text
    FORM PROG_PERNR USING NAME  TYPE LDBN-LDBNODE
                          WA    TYPE PERNR
                          EVT   TYPE C
                          CHECK TYPE C.
        message id sy-msgid type sy-msgty number sy-msgno
               with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      CASE EVT.
        WHEN 'G'.
          WRITE: / WA-PERNR.
          ULINE.
        WHEN 'L'.
      ENDCASE.
    ENDFORM.                    "PROG_PERNR

    Yes, this is the best way of fill out these tables. But my problem is different, I'm trying to get the infotypes info through a BADI or function module.
    I received a response from SAP about how to resolve this issue. I need to use the old way:
    SUBMIT...RETURN to call another report with the PNP/PNPCE Logical Database.
    That's the reason for use the LDB_PROCESS function module. (SUBMIT...RETURN uses too many memory and processor resources) Now I know that this function module does not work with HR Logical Databases because the Infotypes structures. 
    Thank you by your quick reponse.
    José

  • Reg : Selection Screen For PNP LDB

    Hi All,
    I am having problem in selection screen of logical database PNP..  I am attaching the screenshot of the screen which I am using.
    [https://www.2big2send.com/collect/861452b5d77254eea4fa17cec4842d63]
    Actually.. I created 3 radio buttons down in the screen.. i.e. Delta, delta for X date, full file.
    If the user click on Delta radio button then he can only select today radio button.. If he select others than.. the error message should come.. Can anyone help me.. coz.. I dont know.. which event is triggering if the user select other than today radio button of the PNP screen.
    I put break points on the AT SELECTION SCREEN and AT SELECTION SCREEN OUTPUT.
    But, none of the event is triggering.. Can anyone help me regarding this.
    Thanks,
    Regards,
    Jhings.

    Hi...
    Thanks for the reply.. I did this also..
    AT SELECTION-SCREEN ON RADIOBUTTON GROUP $zb2.
      BREAK-POINT.
    $zb2 is the group name of the radio button which is there in PNP logical database selection screen..
    Same problem again.. this event is not triggering also..
    Regards,
    Jhings

  • Can I change the select option text for pnp ldb ?

    hi Akll,
    I am using a pnp logical database in my report and I have created my own hr category because i wanted to use field ename from the ldb in the selection screen. Now the problem with ename is I cant do a case sensitive search.
    So I have replaced it with sname, so now my screen has sname instead of ename, however I want to change the selection text for select option ( at present it is 'EE name can be sorted' )
    Kindly advise,
    thanks,
    GV

    I guess the text cannot be changed.. anyways you can add the field as an additional field by normal coding in your report

  • TRDIR INSERT REPORT for PNP

    HI ,
    i used Insert report option for HR Programs. what should i declare if i have to select my own selection screen (that we select through ( HR Report Category) ) .
    I was able to change the basic attributes that we select through TRDIR..
    but these options are available in t599c table how to link between trdir & t 599c
    thanks in advance
    kindly share ur suggestions
    regards
    Hema

    Hi,
      In Report attributes , u have to mention logical database = PNP..and go to HR report category..
    then click report category...here u can create ur own selection.
    Regards,
    Ramesh.

  • Set variant for PNP LDB select option of pernr

    Hi All,
    I want to set variant for PERNR of PNP LDB in one of the program through other program using RS_CREATE_VARIANT FM.
    Please help to solve this problem.
    Thanks,
    Shailesh S. Malkar.

    REPORT  ZTEST.                   .
    tables: pa0003.
    ranges pernr for pa0003-pernr.
    * Fill neccesary PERNRs
    pernr-low = 1000.
    pernr-sign = 'I'.
    pernr-option = 'EQ'.
    append pernr.
    pernr-low = 1112.
    pernr-sign = 'I'.
    pernr-option = 'EQ'.
    append pernr.
    SUBMIT RHINTE00 WITH PNPPERNR IN PERNR.

  • Assign Report Category to a SAP Query for PNP LDB

    Hello Folks,
    How to Assign a Report Category to a SAP Query which is using LDB PNP.
    Regards,
    Nishanth Kumar

    Hi,
    SE38 -> Report name -> attributes ->  HR Report category
    Regards,
    Dilek

  • Define selection screen for ldb_process

    Hi I'm using the call function ldb_process for KDF(lfa1, lfb1, bsik), the trouble is that the information its different than if i do it on a normal report defining the logical database kdf and selection screen 903.
    I find that the difference is because the selection screen, this is because the default selection screen for the kdf database is 1000, and this selection has the "Open items at key date" selection with the current date.
    The question is:
    How can i define the selection screen 903 using the call function ldb_proces?
    Thanks
    Pablo Santos

    Hi,
    You cannot define screen version 903 using function LDB_PROCESS. Instead use table "SELECTIONS" of the function module .
    Cheers.

Maybe you are looking for

  • SAP HR- Upgrade to ECC6- Project preperation

    Hi Gurus, Please can you help. My company already have ecc5, and now want to upgrade to Ecc6. I am soon starting the project preperation. What issues do I have to look into for this? technical and business minded. Will the be anything to consider, di

  • Capture dvi and optical digital audio-in through one custom capture preset

    How can I create a FCP capture preset that will capture from a digital video to firewire box (grass valley (formerly canopus) advc-hd50) AND the optical audio in port on my desktop mac dual g5? I have HD dvi video (which has no audio content) and dig

  • Select query and join's

    Hi All, I had to modify the current select query coz its taking a lot of database time, please suggest the best solution for the below. SELECT msegbukrs mkpfbudat mkpf~bldat msegebeln mkpfxblnr mseg~mblnr msegmjahr msegzeile mseg~xauto msegparent_id

  • Bean related

    Hi, I have 2 queries wrt to Bean usage in JSPDynPage. 1. I am trying a very simple example which goes as follows: Dynpage: public void doProcessBeforeOutput() throws PageException {       testbeanclass4 testBean4 = new testbeanclass4();       ((IPort

  • AS file not recognizing id's from separate MXML file

    I'm new to Flex (and fairly new to programming in general) and have a question that Google hasn't helped with. The relevant code is below, and here's the long and short of it. There's a TextInput whose visibility I want to toggle via a function in a