Unwanted elements shown in screen !!

Hi,
I have done a BDC recording of FB12 and pasted the code of its program in my report program. Functionality wise everything is working fine but I am getting some extra screen elements in my screen and they seem to be related to the BDC recording ...I dont understand what they are for and how to remove them !!
Steps I followed:
1. Using SHDB did BDC for FB12.
2. Copied the perform statements to be Z report program and edited to include them in a loop iterating an itable which supplies the data.
""""" BTW, how do i attach screen shots for this issue in the forum ?? """"""
code is as shown below...
REPORT  ZFB12TEST.
TABLES:     BKPF.
Data : v_gjahr(10) type c.
DATA: BEGIN OF bkpf_rec OCCURS 0,
                bukrs LIKE BKPF-BUKRS,
                blart LIKE BKPF-BLART,
                cpudt LIKE BKPF-CPUDT,
                budat LIKE BKPF-budat,
                belnr LIKE BKPF-BELNR,
                gjahr LIKE BKPF-GJAHR,
      END OF bkpf_rec.
SELECT-OPTIONS: so_bukrs FOR BKPF-BUKRS,
                so_blart FOR BKPF-BLART,
                so_cpudt FOR BKPF-CPUDT,
                so_budat FOR BKPF-budat,
                so_belnr FOR BKPF-BELNR,
                so_gjahr FOR BKPF-GJAHR.
include bdcrecx1.
start-of-selection.
SELECT bukrs blart cpudt budat belnr gjahr into table bkpf_rec from bkpf
where bukrs IN
so_bukrs and blart in so_blart and cpudt in so_cpudt and budat in
so_budat and belnr in so_belnr and gjahr in so_gjahr.
loop at bkpf_rec.
perform open_group.
perform bdc_dynpro      using 'SAPMF05M' '0100'.
perform bdc_field       using 'BDC_CURSOR'
                              'RF022-BUKRS'.
perform bdc_field       using 'BDC_OKCODE'
                              '=SEL'.
perform bdc_field       using 'RF022-BUKRS'
                              bkpf_rec-bukrs.
perform bdc_dynpro      using 'SAPMSSY0' '0120'.
perform bdc_field       using 'BDC_CURSOR'
                              '19/07'.
perform bdc_field       using 'BDC_OKCODE'
                              '=PICK'.
perform bdc_dynpro      using 'SAPLF022' '1001'.
perform bdc_field       using 'BDC_CURSOR'
                              'RF022-GJAHR'.
perform bdc_field       using 'BDC_OKCODE'
                              '=GO'.
perform bdc_field       using 'RF022-BELNR'
                              bkpf_rec-belnr.
Write BKPF_REC-GJAHR to v_gjahr.
perform bdc_field       using 'RF022-GJAHR'
                               v_gjahr.
perform bdc_transaction using 'FB12'.
perform close_group.
endloop.

This is a modified version of your code...without the standard include.....
*& Report  ZFB12TEST
REPORT  ZFB12TEST.
TABLES: bkpf.
*   data definition
*       Batchinputdata of single transaction
DATA:   bdcdata LIKE bdcdata    OCCURS 0 WITH HEADER LINE.
*       messages of call transaction
DATA:   messtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.
*       error session opened (' ' or 'X')
DATA:   e_group_opened.
*       message texts
DATA : v_gjahr(10) TYPE c.
DATA: BEGIN OF bkpf_rec OCCURS 0,
bukrs LIKE bkpf-bukrs,
blart LIKE bkpf-blart,
cpudt LIKE bkpf-cpudt,
budat LIKE bkpf-budat,
belnr LIKE bkpf-belnr,
gjahr LIKE bkpf-gjahr,
END OF bkpf_rec.
SELECT-OPTIONS: so_bukrs FOR bkpf-bukrs,
so_blart FOR bkpf-blart,
so_cpudt FOR bkpf-cpudt,
so_budat FOR bkpf-budat,
so_belnr FOR bkpf-belnr,
so_gjahr FOR bkpf-gjahr.
CONSTANTS: nodata VALUE '/'.          "nodata
DATA: session,
      user(12),
      group(12),
      e_hdate LIKE sy-datum,
      e_user(12),
      e_group(12),
      cupdate LIKE ctu_params-updmode VALUE 'L',
      ctumode LIKE ctu_params-dismode VALUE 'N'.
START-OF-SELECTION.
  SELECT bukrs blart cpudt budat belnr gjahr INTO TABLE bkpf_rec FROM bkpf
  WHERE bukrs IN
  so_bukrs AND blart IN so_blart AND cpudt IN so_cpudt AND budat IN
  so_budat AND belnr IN so_belnr AND gjahr IN so_gjahr.
  session = 'X'. " Leave blank for call transaction
  user    = sy-uname.
  group   = 'XXXXXXXX'. "Give a group name
  e_hdate = sy-datum.
  e_user  = sy-uname.
  e_group = 'E_XXXXXX'. "Give a name for error session
  LOOP AT bkpf_rec.
    PERFORM open_group.
    PERFORM bdc_dynpro USING 'SAPMF05M' '0100'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'RF022-BUKRS'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=SEL'.
    PERFORM bdc_field USING 'RF022-BUKRS'
    bkpf_rec-bukrs.
    PERFORM bdc_dynpro USING 'SAPMSSY0' '0120'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    '19/07'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=PICK'.
    PERFORM bdc_dynpro USING 'SAPLF022' '1001'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'RF022-GJAHR'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=GO'.
    PERFORM bdc_field USING 'RF022-BELNR'
    bkpf_rec-belnr.
    WRITE bkpf_rec-gjahr TO v_gjahr.
    PERFORM bdc_field USING 'RF022-GJAHR'
    v_gjahr.
    PERFORM bdc_transaction USING 'FB12'.
    PERFORM close_group.
  ENDLOOP.
*   create batchinput session                                          *
*   (not for call transaction using...)                                *
FORM open_group.
  IF session = 'X'.
    SKIP.
    WRITE: /(20) 'Create group'(i01), group.
    SKIP.
*   open batchinput group
    CALL FUNCTION 'BDC_OPEN_GROUP'
      EXPORTING
        client = sy-mandt
        group  = group
        user   = user
        keep   = 'X'.
*        holddate = holddate.
    WRITE: /(30) 'BDC_OPEN_GROUP'(i02),
            (12) 'returncode:'(i05),
                 sy-subrc.
  ENDIF.
ENDFORM.                    "
*   end batchinput session                                             *
*   (call transaction using...: error session)                         *
FORM close_group.
  IF session = 'X'.
*   close batchinput group
    CALL FUNCTION 'BDC_CLOSE_GROUP'.
    WRITE: /(30) 'BDC_CLOSE_GROUP'(i04),
            (12) 'returncode:'(i05),
                 sy-subrc.
  ELSE.
    IF e_group_opened = 'X'.
      CALL FUNCTION 'BDC_CLOSE_GROUP'.
      WRITE: /.
      WRITE: /(30) 'Fehlermappe wurde erzeugt'(i06).
      e_group_opened = ' '.
    ENDIF.
  ENDIF.
ENDFORM.                    "CLOSE_GROUP
*        Start new transaction according to parameters                 *
FORM bdc_transaction USING tcode.
  DATA: l_mstring(480).
  DATA: l_subrc LIKE sy-subrc.
* batch input session
  IF session = 'X'.
    CALL FUNCTION 'BDC_INSERT'
      EXPORTING
        tcode     = tcode
      TABLES
        dynprotab = bdcdata.
*    IF smalllog <> 'X'.
    WRITE: / 'BDC_INSERT'(i03),
             tcode,
             'returncode:'(i05),
             sy-subrc,
             'RECORD:',
             sy-index.
*    ENDIF.
* call transaction using
  ELSE.
    REFRESH messtab.
    CALL TRANSACTION tcode USING bdcdata
                     MODE   ctumode
                     UPDATE cupdate
                     MESSAGES INTO messtab.
    l_subrc = sy-subrc.
**    IF smalllog <> 'X'.
*    WRITE: / 'CALL_TRANSACTION',
*             tcode,
*             'returncode:'(i05),
*             l_subrc,
*             'RECORD:',
*             sy-index.
*    LOOP AT messtab.
*      SELECT SINGLE * FROM t100 WHERE sprsl = messtab-msgspra
*                                AND   arbgb = messtab-msgid
*                                AND   msgnr = messtab-msgnr.
*      IF sy-subrc = 0.
*        l_mstring = t100-text.
*        IF l_mstring CS '&1'.
*          REPLACE '&1' WITH messtab-msgv1 INTO l_mstring.
*          REPLACE '&2' WITH messtab-msgv2 INTO l_mstring.
*          REPLACE '&3' WITH messtab-msgv3 INTO l_mstring.
*          REPLACE '&4' WITH messtab-msgv4 INTO l_mstring.
*        ELSE.
*          REPLACE '&' WITH messtab-msgv1 INTO l_mstring.
*          REPLACE '&' WITH messtab-msgv2 INTO l_mstring.
*          REPLACE '&' WITH messtab-msgv3 INTO l_mstring.
*          REPLACE '&' WITH messtab-msgv4 INTO l_mstring.
*        ENDIF.
*        CONDENSE l_mstring.
*        WRITE: / messtab-msgtyp, l_mstring(250).
*      ELSE.
*        WRITE: / messtab.
*      ENDIF.
*    ENDLOOP.
    SKIP.
*    ENDIF.
** Erzeugen fehlermappe ************************************************
    IF l_subrc <> 0 AND e_group <> space.
      IF e_group_opened = ' '.
        CALL FUNCTION 'BDC_OPEN_GROUP'
          EXPORTING
            client   = sy-mandt
            group    = e_group
            user     = e_user
            keep     = 'X'
            holddate = e_hdate.
        e_group_opened = 'X'.
      ENDIF.
      CALL FUNCTION 'BDC_INSERT'
        EXPORTING
          tcode     = tcode
        TABLES
          dynprotab = bdcdata.
    ENDIF.
  ENDIF.
  REFRESH bdcdata.
ENDFORM.                    "BDC_TRANSACTION
*        Start new screen                                              *
FORM bdc_dynpro USING program dynpro.
  CLEAR bdcdata.
  bdcdata-program  = program.
  bdcdata-dynpro   = dynpro.
  bdcdata-dynbegin = 'X'.
  APPEND bdcdata.
ENDFORM.                    "BDC_DYNPRO
*        Insert field                                                  *
FORM bdc_field USING fnam fval.
  IF fval <> nodata.
    CLEAR bdcdata.
    bdcdata-fnam = fnam.
    bdcdata-fval = fval.
    APPEND bdcdata.
  ENDIF.
ENDFORM.                    "BDC_FIELD

Similar Messages

  • WBS Element  in selection screen

    hi,
    WBS Element in selection screen of the report need to be added from BSEG table of field PROJK.
    requirement is
    for eg- if you take a WBS Element suppose 11020017 and you put in BSEG table give the values as
    BUKRS= 0010
    GJAHR =2008
    PROJK =11020017 it gives a message WBS Element 11020017 does not exist.
    where as this WBS element if you insert in Function module  CONVERSION_EXIT_ABPSP_OUTPUT
    input as 11020017 , you will get output as 1000050-01.
    and again goto BSEG table and give the values as
    BUKRS= 0010
    GJAHR =2008
    PROJK =1000050-01, now u will get the value of  WBS Element as 11020017 .
    in the report the bussiness requires WBS Element in selection screen , the user gives the value of WBS Element in selection screen 11020017,it gives a message WBS Element 11020017 does not exist, the user should give this value1000050-01, but user doesnot know this value,user knows only 11020017 value.
    now if the user gives in selection screen 11020017 it should work i mean it must convert  to 1000050-01.
    how to use function module in selection screen.help with code
    thanks in advance

    Hi,
         Use in following way, declare a parameter P_PROJK as character type, if you declare it as TYPE BSEG-PROJK system will defaultly check in dadabase table.
    PARAMETERS : p_projk(10) TYPE c.
    AT SELECTION-SCREEN.
      CALL FUNCTION 'CONVERSION_EXIT_ABPSP_OUTPUT'
        EXPORTING
          input  = p_projk
        IMPORTING
          output = p_projk.
    START-OF-SELECTION.
      BREAK-POINT.
    Regards
    Bala Krishna

  • My ipad mini is total blank off. Nothing shown on screen. Battery is fully charged. what happens?

    My iPad mini is totally blank off. nothing shown on screen. The battery is charged. What happens?

    You are in Recovery Mode.
    Follow step 1 to 6 closely to recover your iPad.
    http://support.apple.com/kb/HT1808
    Note: You may have to repeat the above a few times

  • When i get a call unknown is shown on screen even if the number is saved in my phone

    when i get a call unknown is shown on screen even if the number is saved

    Caller ID is a carrier feature & the number must match exactly what is entered in your contact listing.

  • Photoshop Elements 10 Edit Screen won't load

    Photoshop Elements 10  Edit Screen won't load.  It was working fine, then I responded to an Adobe Update. It stopped working. I re-installed Photoshop Elements 10 for MAC from the purchased Disc. The organizer works but not the editor. The organizer is not able to call the Editor either. I have uninstalled and reinstalled twice. I cannot get the editor to load it's editing screen or any images.
    I'm really stuck.

    Go to your username>library>preferences and delete:
    com.adobe.PhotoshopElements.plist
    Adobe Photoshop Elements 10 settings
    Adobe Photoshop Elements 10 paths
    repair permissions and try again.
    Note: In lion, that library is hidden. In the finder, click the Go menu and then hold down the Option key to make it appear.

  • How to color the text element in selection screen

    hi,
    i am going to pass some text element in selection screen output  and my requiremnt is text element should be given some colour.
    plz guide me.
    regards
    muthuraman.d

    Hi...
    Dont Declare your field as OBLIGATORY.
    Instead perform the validation in AT SELECTION-SCREEN event. But validation should be only when Particular Radiobutton is selected.
    And Generate only Error Message (Type E).
    Try this code:
    AT SELECTION-SCREEN on <yOUR mandatory field>.
       IF PA_UPD = 'X'.
             IF <YOUR MANDATORY FIELD>  IS INITIAL.
                  Message 'Entry is must in this field' type 'E'.
             ENDIF.
       ENDIF.
    AT SELECTION-SCREEN OUTPUT.
    IF pa_udp = 'X'.
    LOOP AT SCREEN.
    IF screen-group1 = 'ABC'. "#CCE
    screen-active = 1.
    ELSEIF screen-group1 = 'DEF'.
    screen-input = 0.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    ELSEIF pa_rep = 'X'.
    LOOP AT SCREEN.
    IF screen-group1 = 'ABC'. "#CCE
    screen-input = 0.
    ELSEIF screen-group1 = 'DEF'.
    screen-active = 1.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    ENDIF.
    <b>Reward if Helpful</b>

  • When printing slides with notes, only notepart shown on screen is included

    Hi
    I make presentations with really long presenters notes. During presentation I can scroll the presenters notes on screen with U and D, but my problem is when printing the slides with notes, only the part of the notes that is shown on screen is printing, so I sometimes half of the note section on a slide.
    Is there a work around, or is it just the way life is?
    Thanks in advance.

    I too am having the same issue. I am trying to print out a monthly calendar like I see on the screen. At the most on any given day I have 4 lines of text. It shows on the screen but when I print it puts 3 little dots above that particular day to let me know there is more to it and refuses to print more than 3 items. I have tried with different page set ups and all I am doing is wasting ink. What's worse, is that there is PLENTY of room left on the paper. There is so much room between the month label and where the calendar starts there certainly has to be a way to adjust this. (I would hope!) Anyone please help! Thanks in advance.

  • Photoshop Elements #11 dialog screen missing

    I AM UNABLE TO OBTAIN THE SCREEN THAT HAS THE ADVANCED DIALOG BOX ON THE LOWER LEFT HAND CORNER SO THAT I CAN STATE NAME OF CREATOR, COPYWRIGHT ETC.    I have had PS Elements since #1, and never had this problem.'    Yes, I have gone into Preferences and can set download option, but cannot get the screen I have just described.     PLEASE HELP ME

    HI,
    This still does not work.  I have tried to correct this several times 
    before by doing just what you suggest, but it does not work.   I click  on "APD
    Advanced Dialog", and it still does not appear when I load my  compactflash
    card.    This also DOES NOT bring up the  Advanced Dialog box where I can
    select either advanced or regular  etc.   Something is seriously wrong with
    this edition of Photoshop  11.   I also tried to acces the link you sent, and
    I cannot open  it.  - ???????
    We still have a problem that is not fixed.
    I still await your phone call either tomorrow (Friday) or Monday.
    Regards,
    Dave Pidcock
    David E. Pidcock
    VisionQuest Enterprises
    VisionQuest  Photography
    405 27th Avenue N.E.
    Great Falls, MT 59404
    (406)  727-2466
    [email protected] 
    In a message dated 2/21/2013 7:30:12 P.M. Mountain Standard Time, 
    [email protected] writes:
    Re:  Photoshop Elements #11 dialog screen missing
    created by andaleebfatima1
    (http://forums.adobe.com/people/andaleebfatima1)  in  Photoshop Elements - View the full  discussion
    (http://forums.adobe.com/message/5083732#5083732)

  • Cost element missing form screen KP06

    Hello everyone,
    I am doing ABC costing and while making a posting on screen Change cost element/ Activity input planning which is KP06 transaction code i cannot find boxes for cost element where i can take multiple cost element and more over when i m entering in item overview screen with cost centre & activity types i can see one of my cost element. But i cannot include cost elements  at KP06 screen.
    Can anyone help me out Please.
    Thanks,
    Mohammed samiuddin.

    Mohammed,
    Check the layout you are using while entering the data in that transaction. Typically you can see the layout  that you are in at the top of the screen. Usually SAP defaults to layout 1-101 which have the option to enter cost centers, activities and cost elements.  Use the icon left and right arrow (Previous layout and Next Layout) located under the title of the transaction KP06 to change it. If you still can't find any that fulfills you requirement, I am afraid you may have to create a new one in the customizing (CO Manual Planning)
    Hope this helps.
    GG

  • How can I see elements at the screen.

    Hi..
    I installed VC 6.0 but I cannot see any elements in the screen.
    I also installed SVG viewer and MSXML 4.0 SP2.
    Is this problem is happend because of wrong installation or connention problem with Enterprise Portal?
    The VC version is 6.0 patch 6 and EP 7.0.
    Message was edited by: rita kim

    Hi Rita,
    What SP Level of EP 6.0 had you tried?
    VC 6.0 Patch 6 is supported by EP 6.0 SP 12/13. But any level beyond that also supports VC 6.0, but may give some problem in BI Connectivity.
    That's why you'll have to deploy some .sda files those are required for EP 6.0.
    Since neither I have installed VC 7.0 nor I have worked on that, so i can give you a list of sda files those are necessary to be deployed to the EP 6.0, to cancel out the patch incompatibility problem between VC 6.0 and EP 6.0. They are as follows:
    BIUDISystems.sda
    com.sap.visualcomposer.BIKit.sda
    com.sap.visualcomposer.BIKitQV.ear
    com.sap.visualcomposer.portalcontent.sda
    com.sap.visualcomposer.sda
    NOTE - Check out the order of deployment from the installation guide. Moreover, all the above sda files are available in Portal-addons folder after you download VC 6.0 patch 6 from SAP Service Market-place. But remember it all depends on the SP Level of EP 6.0 you are using, deploy the suitable sda files only, otherwise it is of no use.
    Now since I have never worked on VC 7.0, that's why i don't know about that, but there may be sda files of same name for EP 7.0. Kindly check it out and deploy them on your portal.
    Go to service.sap.com > downloads > Search for all catagories > Search with "VISUAL COMPOSER 7.0"
    Thanks in advance,
    Deep.
    Message was edited by: Deep Chakrabarti
    Message was edited by: Deep Chakrabarti

  • Will the next version of elements contain green screen

    Will the next version of photoshop elements contain green screen

      Green screen exists in the combo (including the Premiere Elements video editor) but I’m not sure it’s needed in Photoshop Elements. It’s already possible to quickly select any solid color background.
     

  • How to create/add attributes in element list in Screen (example 100)

    HI,
    how to create/add attributes in element list in Screen (example 100)
    I mean after creating screen ..it has "OK CODE " attribute in element list tab in 100 screen.
    I want to create "container" in Element list tab in my screen 100 program
    I want to create new layout " container" in the element tab (i know if i click on layout button where i can create manually)
    Thanks
    Edited by: Raja on Apr 29, 2009 4:19 PM

    Hi Raja,
    Do you remember how you resolved this problem? I am facing the same. Appreciate your response.
    Thanks,
    Shailaja

  • Shown on screen emergency call only and connect to itunes.

    I use iPhone 5c 16GB iOS 7. it shown on screen (emergency call) and also shown (connect to I tunes), I can access to my phone and  I try to switch off and on many time but I doesn't work.

    It's in recovery mode. You plug it into a computer running the current version of iTunes and restore iOS. There is NO OTHER WAY to get past this.
    Anything that was on the phone is gone. I hope you at least had iCloud backups turned on.

  • DW CC: Easy way to hide an element on small screens like smartphones?

    Hi,
    Is there an easy way in Dreamweaver CC to hide an element like an image or div on small screens like smartphones so that it is only shown in desktop browsers? I know the way to build classes with media query but may be in DW there is another way.
    Thank you.

    Sure - just target the element you want to hide once the device viewport hits a specified width in the media query; (example below hides an element with the id of 'header')
    @media screen and (max-width: 480px) {
        #header {
        display: none;

  • On Macbook pro how do I reset my premiere elements 12 welcome screen back as it was to ask if existing or new project.

    Hi there, on my macbook pro, can anyone tell me please how I can reset the welcome screen in Premiere Elements 12 back to how it was, were it asks to open an existing project or a new one. I made the mistake of changing the settings to open Premiere Elements editor by default but now it opens straight into a new project each time. Many thanks.

    alanathome
    I am strictly an Elements Windows user, but I think I am on common ground with this response. Please check it out.
    Resetting of the Welcome Screen is done using the icon to which the arrow points in the screenshot.
    If you cannot get to the Welcome Screen due to a prior set, then in the Open project, if you have a Window Menu, go to Window Menu/Welcome Screen.
    Please let us know if that worked for you.
    Thanks.
    ATR

Maybe you are looking for

  • I turned iPhone automatic backup off and it won't turn back on.

    Ok. So I previously turned off automated backups on iphone. I didn't know there was a gui option to do this so I typed in the terminal command. defaults write com.apple.iTunes AutomaticDeviceBackupsDisabled -bool true This worked. Yet, for some reaso

  • SD-CS-PS-SD order settlement process

    Experts We have a scenario Customer service scenario. Contract=>Sales Order=>Project  WBS Structure for project management( mainly used for Planning Cost and Revenue and Budgeting purpose => Service Order ( wich actually collect the actual Cost ) and

  • How to set a numeric field to the difference of two dates?

    hi, I need to create a table with a field containing a date (by def. current date) and another numeric field whose value is to be set to the difference (in days) between the current date and the date field. Something like this. CREATE TABLE Tabdate (

  • Exchange 2013 Sp1 some users cant access owa

    After I install new exchange 2013 with sp1 on windows 2012 R2 server one for mail boxes and the second Client Access, i move all mail boxes to it, then i uninstall  the old server (exchange 213 with cu3). All may exchange server's virtual machines on

  • KeyFocus and FP.IsFrontMost aren't working

    I'm having troubles get key focus on a control in a subvi that I am showing dynamically. I'd like to be able to leave the VI running in the background, registered for events on its caller. In this example, I have the subvi registering for events when