Question on selection field

I am trying to code in my program, the ability to either select the vendor information by the vendor number that is entered on the selection which could be blank in which case I would select all vendors or by passing a vendor number from a table that I have created in the program. I have even went as far a concatenating the IEQ in front of the vendor number. when I use the vendor from the internal table, I still get all of the vendors and not just the one that I want 
can someone take a look at this code and let me know what I am doing wrong. (this is just a sample and not the entire program)
SELECT-OPTIONS : so_cocod  FOR l_bukrs,
                 so_lifnr  FOR l_lifnr,
                 so_udate  FOR l_udate.
SELECTION-SCREEN END OF BLOCK b1.
START-OF-SELECTION.    "Main logic
  IF so_udate IS NOT INITIAL.
    perform extract_change_data.
      LOOP at it_cdhdr into st_cdhdr.
        CONCATENATE 'IEQ' st_cdhdr-objectid INTO so_lifnr.
        perform extract_vendor_data.
      ENDLOOP.
  ELSE.
    perform extract_vendor_data.
  ENDIF.
FORM extract_change_data.
  SELECT distinct objectid
   INTO TABLE it_cdhdr
   FROM cdhdr
    WHERE objectclas = 'KRED'
    AND  udate in so_udate.
ENDFORM. " xtract_change_data.
FORM extract_vendor_data.
SELECT
     lfb1lifnr lfb1bukrs lfm1ekorg lfa1ktokk adrcname1 adrcname2
     INTO TABLE it_sap_data
      FROM ( lfb1 INNER JOIN lfa1 ON lfb1lifnr EQ lfa1lifnr )
            LEFT OUTER JOIN adrc ON lfa1adrnr EQ adrcaddrnumber
            LEFT OUTER JOIN lfm1 ON lfa1lifnr EQ lfm1lifnr
      WHERE lfa1~lifnr IN so_lifnr AND
           lfb1~bukrs IN so_cocod.
ENDFORM. "extract_vendor_data.
thanks in advance for the help

Hi,
  Try this...
Instead of
   CONCATENATE 'IEQ' st_cdhdr-objectid INTO so_lifnr.
use
so_lifnr = st_cdhdr-objectid+0(10).
In the form extract_vendor_data
SELECT
lfb1lifnr lfb1bukrs lfm1ekorg lfa1ktokk adrcname1 adrcname2
INTO TABLE it_sap_data
FROM ( lfb1 INNER JOIN lfa1 ON lfb1lifnr EQ lfa1lifnr )
LEFT OUTER JOIN adrc ON lfa1adrnr EQ adrcaddrnumber
LEFT OUTER JOIN lfm1 ON lfa1lifnr EQ lfm1lifnr
WHERE lfa1~lifnr = so_lifnr AND
lfb1~bukrs IN so_cocod.
ENDFORM. "extract_vendor_data.
Regards,
Vara

Similar Messages

  • Is there a way to import a choice list in multiple (or single) selection fields?

    Is there a way to import a previously created choice list in multiple (or single) selection fields in forms central? 

    Hello Dr. Ryan,
    Unfortunately there is no way to move this data into FormsCentral.
    As far as your question about using PDFs with FormsCentral, 'soon' is actually 'now'! You have two options:
    1) Author a new form with FormsCentral. From the distribute tab, save a submission-enabled PDF form. You can send this form out to your recipients and their responses will be collected on FormsCentral.
    2) Import an exsiting PDF form into FormsCentral from the dashboard, and then submission-enable it. Distribute the submission-enabled version and responses will be collected on FormsCentral.
    Thanks!
    Shannon

  • Specifying Question and Answer fields in Response sheet from Pre-existing Interactive PDF

    I am creating a new form from an existing interactive pdf, which has text boxes to supply answers. How can I get the response sheet to reflect the questions that are in the pdf? That is how does FormsCentral determine what the question and answer are in a pre-existing interactive pdf that is uploaded? Right now it is either putting the answers in the column next to the question or selecting the wrong heading when users respond and the response sheet is populated.
    Thanks!

    I'm not quite sure I understand your issue. FormsCentral create the columns in the Response Table using the field's name in the PDF.
    You might want to make sure that the fields are names correctly (using Acrobat) before importing the PDF in FormsCentral.
    You can also send your original PDF to [email protected] so that we can try to import it on our side and see what can be wrong. Please add a reference to this forum's thread in your email.
    Gen

  • How to create a selection field in Infopackage

    Hello  Experts,
    Greetings.
    My Requirement is to have a infopackage to dynamically accept the selection field values
    Now I Understand the we can only populate single ragne of values VIA ABAP Routine.
    Eg: 0Plant : 1 to 99999999999
    But now my requirement is to make Infopackage accept full range of single values.
    like for Eg for Numeric values it should be
    0Plant = 1 to 99999999999
    for charcters plant from all characerstic material master
    0Plant = CR_001
    0Plant = CRWed
    0Plant  = QWET
    Eg:  It has a field 0Plant now i want this field to replicate as many plant as I get from Material Master table
    How can this be achieved .
    Regards,
    Sachin Dehey,

    Hello Sachin
    You can add 0PLANT in the InfoPakckage more than once in the Data Selection tab by simply pressing '+' sign.
    Like
    0PLant    0000001 - 0999999999 ( this will be populated via routine or can be fixed values)
    0Plant = CR_001
    0Plant = CRWed
    0Plant = QWET
    THis selection will pull all the plants' data where plant is 000001- 0999999, and plant is CR_001, CRWed and QWET.
    But I must acknowledge , I did not get your question properly. I replied based on my assumption. 
    Regards
    Anindya

  • Dynamic selection field display

    Hi
    Can we display field values for a field from Dynamic selection ?

    Hi,
    Yes, you can display field values in dynamic selection field.
    If I understood your question correctly, you are talking about the dynamic selection used in reports ( For eg. ME2N). The field which are appearing in dynamic selection shows the field values. ( you can press F4 and check the field values).
    Rajesh.

  • Date selection field

    Can I add a date selection field?

    Great, thank you.
    One other question.  Does the “submit” button located at the bottom of the PDF only upload documents to the cloud that have been opened in Acrobat?
    I made a form that can be submitted to the Adobe cloud after clicking the “submit” button at the bottom of the page when the PDF is opened in Acrobat.  However, the “submit” button doesn’t seem function properly when I open the document in PDF Expert on my Ipad.  Is there any way for the submit option to operate in PDF expert, or do I have to use an Adobe app on the Ipad?
    Thank you,
    Dan Burns

  • Selection field credit controlig area

    Dear all
         i have selection field when i receive payment FB05  (without clearing ) system automatic capture defoult CCA in backround .
        My question is Can i populate field in entry screen Credit control Area .
    Regards
    Purushottam Bawane

    Hi Purushottam,
    Yes that is true. The customer and vendor masters do not have the capability to take profit center in the classic view. This was never possible in the old GL. The profit center is acquired based on the offsetting line (expense or revenue accounts) at the month end when you run 1KEK. transaction.
    However in the New GL, it is possible to derive a profit center online through the document splitting functionality. New tables are added (FAGLFLEXA and FAGLFEKXT) which are filled in with profit center through the document splitting functionality. The profit center is derived through the offsetting revenue account and you can see it only after the document is posted. After the document is posted you can only see it is in the GL view (new GL tables) and the classic view still does not have a profit center.
    If you want to derive a profit center in the classic view please use a substitution rule based on a user exit. It is more complicated.
    Regards
    Sharabh

  • Modify MB25 and add a new selection field

    Hello All,
    I need to copy MB25 to ZMB25 and add field to the selection  screen and modify the select statement further. MB25 uses a LDB and I am never used LDB. Please help me how to do this and post some notes on LDB as I have lot of questions.
    <b>FYI:</b> I made a Z copy of the program and in the program attributes, I see a LDB. I made a Z copy of the LDB and added a selection field. I donno if that is the right way or not. I am also not sure where to modify the selection based on the newly added selection field.
    Thanks in advance
    Chandni Reddy

    from SAP help :
    If you define the selection criterion for a column of a database table that supports dynamic selections, the values entered on the selection screen are transferred to the logical database. There, they are treated as dynamic selections. The logical database does not read records from the database table that do not meet these selection criteria. This kind of selection is much more efficient than for database tables that are not designated for dynamic selections.
    Besides, the input fields for the corresponding dynamic selection are displayed on the selection screen from the start. This spares the user from having to choose Dynamic Selections to display the corresponding screen.

  • Program without selection fields

    Hi ,
    If there is a program with no selection fields what are the limitations and issue concerning to that program and executing the program?
    Regards,
    Keerthi

    Hi,
    Thanks for the reply,
    But I would like to put the question in another way,
    Is there any program where it does not have anything like the screen but just run in the background. If the program has a screen created then it should have something to select for like the Radio button options, the check box options or the open selection fields. I hope you are with me till this point.
    Now, does any program can be created just to be run in the background where it is triggered by another program(s), and the program does processing only when it is being triggered by other programs.
    Regards,
    Keerthi
    Edited by: Keerthi Kumar Stephen on Mar 9, 2009 9:42 AM
    Edited by: Keerthi Kumar Stephen on Mar 9, 2009 9:43 AM

  • Is there a way to create form fields to tab into and type and or drop down selection fields in pages as you can with microsoft word?

    is there a way to create form fields to tab into and type and or drop down selection fields in pages as you can with microsoft word?

    No

  • How to get multiple selected fields in list

    Hello all,
    I am trying to get multiple selected value from a list but i dont know how to get multiple selected fields from a list though AS3.
    Actually i want to pass the selected fields to php, so for that i need to get the selections and send to php.
    Thankx..

    i want to put the selected fields of list in an array through AS3....
    actually......i figured it out how to do that...........
    Its simple......use
    list.selectedItems[index]
    and to get the number of items selected......
    list.selectedItems.length
    simple.....

  • Is it possible to display only dynamically selected fields in the out put?

    Is it possible to display only dynamically selected fields in the out put? i need to display set of columns in the selection criteria, but in the output i have display only input given fields. because i need to convert it into .csv file. So i have to display selected fields from internal table. In oracle they are using"execute immediate". is there any equivalent in SAP?
    thanks in advance.

    Hi Remya,
    Are you talking about dynamic programming in ABAP ?
    If yes, there are concepts like RTTS which facilitates it.
    Yes, the select query also supports dynamic selection of fields. ( Please care about ( ) in dynamic sql ).
    Do more research on Field Symbols and statements like ASSIGN COMPONENT OF.
    Regards,
    Philip.

  • How can I enforce automatic spell checking for selected fields of data entered by form users?

    I'd like to be able to enforce spell checking of selected fields in the forms that I've created using LiveCycle Designer 8.2 at run time, as opposed to design time.  I understand the version LCD 8 has a nifty new spell checker for form designers.  But I want to spell check the data entered by users using Acrobat Reader.  And I want to enforce the spell checking automatically on selected fields only.
    Presently it seems that users filling in my forms, must know how to manually right-click on each field and select "Spell Check" from the resulting dialog box in order to check for spelling errors in the data the user has entered in the form.
    I would like to discover a way to enforce spell checking in selected fields, just as I am able to do in forms created using Acrobat Pro.  In Acrobat Pro, I can set a property for each field to require spell checking.  but that feature seems to be missing in Livecycle Designer.
    I've check the Object model for XFA forms hoping that I might find a method I can call with a Javascript, to check spelling based on an event such as onBlur.  But I haven't found a spell check method.
    Am I missing something simple?  Is there a way to set each field to be spell checked when a user is filling in the form using the free Acrobat Reader?
    Our users are not sophisticated and requiring them to spell check each field separately just won't cut it...
    Any help on this will be greatly appreciated.
    Thanks!
    -David Bartholomew

    Hi David,
    Two things...
    At design time set the locale of the form to one that Acrobat spell checks. For example English (US) and English (UK) locales have spell checkers; however English (Ireland) does not. Check the Warnings tab to see if spell checking is supported for your locale.
    If your form locale supports spell checking then you can go to the button script below.
    If you form locale does NOT support spell checking then Stephanie has a great work around to force spell checking (http://forums.adobe.com/message/2233945#2233945).
    Bring a regular button onto the form and in the click event have the following:
    app.execMenuItem("Spelling:Check Spelling");
    Which will open the spell checker for all fields.  Thanks to Paul for extracting all of the accessible menu items (http://forums.adobe.com/message/1912914#1912914).
    Good luck,
    Niall

  • Problem with selection fields in SAP Quick Viewer

    Hi Friends
    I am using SQVI t-code to develop the SAP queries. I have developed a query using tables KNA1, VBAK and VBAP. Initially I used customer number, customer name, city, document creation data, document type and document number as selection fields. Now I have removed customer name, city, document creation data, document type from selection fields.  I am executing this query through a Function module "RSAQ_REMOTE_QUERY_CALL". While passing the data to selection table, even after deleting the 4 selection fields, still I have to pass the sales document number positioning as 6. Is there any way to solve this and make its position as 2.
    I have gone through the FM "RSAQ_IMPORT_QUERY", there one table parameter O_DBSE will retrieve the values for selection fields are designed for that query, again its tedious process, I have create a customized function module and make the required changes. Instead of using this FM, is there any table which stores the data of the selection fields of a query. I have tried for the table and I failed to find that.
    Please help me in this regards
    Regards
    Praveen

    Hello, I am trying to create LSMW to upload KP06 also, we have been uploading by copying and pasting once we run the iverview layout and then save. The problem is that we can only do this by G/L account. We want to use one file to upload all. Can you give me some tips how you were able to accomplished. I am familiar with LSMW, but tcode KP06 behaves in different ways. Do you use the flexible upload to load the fiel thru LSMW? Can you tell me which fields you touch in KP06 when you were recording?
    Thanks You,

  • How to hide selection fields when using logical database PNP

    hi.
    i m using a logical database PNP and report catagory 1PY_DEF in my program.
    but when i execute it , it shows to selection box. one name is period and second is selections.
    but i just want to show only period box selection fields , not the selection box fields.
    how it iz possible.

    HI,
    In my case i haved used the PNP logical database..in the selection box i don't wnat to display Contorling area,Cost Center & Organizational Unit. i have written this code to hide those fields..
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-name CS 'PNPKOKRS' OR
           screen-name CS 'PNPKOSTL' OR
           screen-name CS 'PNPORGEH'.
          screen-active = '0'.
          screen-invisible = '1'.
          MODIFY SCREEN.
          CLEAR screen.
        ENDIF.
      ENDLOOP.
    Try modify hide the total block instead of individual fields in that block.

Maybe you are looking for