Form Layout calling ?

Hello ABAPers,
I have designed a smartform and it is working fine i want to implement that form in ME22N where i have given the in processing rouitnes of NACE Txcode
FORM NAME - (Subroutine name)
Progarm Name -(Subroutine pool program name)
SMARTFORM NAME - (Smartform name)
Over all my customized smartform layout is calling when i am taking the print preview in ME22N like what ever form that i have designed it is coming but the data that has to fecth from the database table and display is not coming(displaying)
My Coding Part of Subroutine-Pool Program....
PROGRAM  ZSMART_SUB.
FORM ENTRY using ent_retco ent_screen.
TABLES : NAST.
DATA : W_EKPO TYPE EKPO,
       W_MAKT TYPE MAKT,
              T_EKPO TYPE STANDARD TABLE OF EKPO INITIAL SIZE 0,
       T_MAKT TYPE STANDARD TABLE OF MAKT INITIAL SIZE 0,
DATA : G_FUN TYPE RS38L_FNAM.
DATA: IT_NAST LIKE NAST OCCURS 0 WITH HEADER LINE,
      W_NAST TYPE ITAB.
DATA FETCHING STATEMENTS
SELECT SINGLE OBJKY FROM NAST INTO W_NAST WHERE OBJKY = IT_NAST-OBJKY.
SELECT * FROM MAKT INTO W_MAKT FOR ALL ENTRIES IN  T_EKPO WHERE
  MATNR = T_EKPO-MATNR.
  ENDSELECT.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
  EXPORTING
    FORMNAME   = 'ZFORM' "SMARTFORM NAME"
IMPORTING
   FM_NAME                  = G_FUN
IF SY-SUBRC <> 0.
ENDIF.
CALL FUNCTION G_FUN
  EXPORTING
    W_EKPO  = W_EKPO
    W_MAKT  = W_MAKT
TABLES
     T_EKPO  = T_EKPO
    T_MAKT  = T_MAKT
IF SY-SUBRC <> 0.
ENDIF.
ENDFORM. "entry_neu
Waiting for your valuable suggestions....
Points will be rewarded for helpful answer.
Thks

hi venkat,
thats very easy.
just follow the steps.
1.please change ur driver program in this way..
   or
   just copy   the  code  into ur driver program.(below is the code--dont chnage anyhting in the prg)
2. in ur smart form  under form interface declare
IS_NAST  type nast.
3.fetch the data based on nast-objky.
now u will get it.
if u dont get plzz ask questions.
I did this today only.
reward points if useful
regards
parthu
TABLES: nast.
Variable Declaration
DATA: g_retcode       TYPE sy-subrc  ,   " Returncode
      g_xscreen(1)    TYPE c         ,   " Output on printer or screen
      g_fm_name       TYPE rs38l_fnam,   " Function Module Name
      g_formname      TYPE tdsfname  .   " Form Name
      FORM ENTRY                                                    *
      Entry form for Calling Smartforms from Standard Transaction   *
FORM entry USING return_code TYPE i
                 us_screen   TYPE c.
  CLEAR g_retcode.
  g_xscreen = us_screen.
Calling Smartforms through standard Tcodes
  PERFORM sub_processing.
  IF g_retcode NE 0.
    return_code = 1.
  ELSE.
    return_code = 0.
  ENDIF.
ENDFORM.                    "ENTRY
*&      Form  SUB_PROCESSING
      This routine is for calling Smartforms through standard Tcodes
FORM sub_processing .
For getting Form name
  PERFORM sub_get_formname.
  IF g_formname IS NOT INITIAL.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        formname           = g_formname
      IMPORTING
        fm_name            = g_fm_name
      EXCEPTIONS
        no_form            = 1
        no_function_module = 2
        OTHERS             = 3.
    IF sy-subrc <> 0.
      CASE sy-subrc.
        WHEN 1.
          MESSAGE e000(38) WITH 'No Form Found'(001)
                                space space space.
        WHEN 2.
          MESSAGE e000(38) WITH 'No Function Module'(002)
                                space space space.
        WHEN OTHERS.
          MESSAGE e000(38) WITH 'Unknown Error'(003)
                                space space space.
      ENDCASE.
    ENDIF.
    CALL FUNCTION g_fm_name
      EXPORTING
        is_nast          = nast
      EXCEPTIONS
        formatting_error = 1
        internal_error   = 2
        send_error       = 3
        user_canceled    = 4
        OTHERS           = 5.
    IF sy-subrc <> 0.
      CASE sy-subrc.
        WHEN 1.
          MESSAGE e000(38) WITH 'Formatting Error'(004)
                                space space space.
        WHEN 2.
          MESSAGE e000(38) WITH 'Internal Error'(005)
                                space space space.
        WHEN 3.
          MESSAGE e000(38) WITH 'Send Error'(006)
                                space space space.
        WHEN 4.
          MESSAGE e000(38) WITH 'User Cancelled'(007)
                                space space space.
        WHEN OTHERS.
          MESSAGE e000(38) WITH 'Unknown Error'(003)
                                space space space.
      ENDCASE.
    ENDIF.
  ELSE.        " Form Does not exits
    MESSAGE e000(38) WITH 'No Form Found For This Output Type'(008)
                               nast-kschl space space.
  ENDIF.
ENDFORM.                    " SUB_PROCESSING
*&      Form  SUB_GET_FORMNAME
      This routine is for Getting formname based on Condition Type
      Message transmission medium and Application from table NAST
FORM sub_get_formname .
  SELECT SINGLE sform
           INTO g_formname
           FROM tnapr
          WHERE kschl EQ nast-kschl
            AND nacha EQ nast-nacha
            AND kappl EQ nast-kappl.
ENDFORM.                    " SUB_GET_FORMNAME

Similar Messages

  • Opening a Word document in a form layout html region

    Hi all,
    In an Interactive Report I use
    select '<img src="#WORKSPACE_IMAGES#'||package.f_get_document_type ( doc.id )||'" title="Document" width=20 height=20>'
    ) document
    from table
    to show an icon that eventually downloads (and shows) a word document.
    Now I have a form layout html region and I want to have the same icon\link to show a document.The document however is not in the same table as the rest of the page is based on.
    How can I show the document on this page?
    Kind Regards,
    Maurice
    Environment = Apex 4.0 database 11G
    Edited by: maurice.niezen on Aug 31, 2010 2:10 AM

    One way, create a hidden item, and return the value into it from your package (by having a computation that calls the function package.f_get_document_type(:P1_DOC_ID) . Let's say it's called :P1_DOC_TYPE
    There's a new item type in Apex 4, which is Display Image.
    When you get to settings in the item creation wizard, specify what the image is based on. From there, you can set it to be 'Image URL stored in Page item Value. Then on the source page, you can just specify the URL, #WORKSPACE_IMAGES#&P1_DOC_TYPE.

  • Form Layout LOV on mandatory field

    Hi,
    I have an LOV on a mandatory field in a form layout. When I am entering a new record and click on the LOV icon the LOV page displays but the calling page gives an error of "Value Required". I have noticed that if I manually change the Immediate property of the field to "false" then I do not get the error.
    This error does not occur in table layout.
    Thanks,
    Gavin

    Gavin,
    Do you have multiple LOV's on the page and/or dependent items?
    Is the Value Required message related to the LOV item on which you invoke the LOV window, or is it another item?
    Steven Davelaar,
    JHeadstart Team.

  • Suppressing parameter form when calling report  (Designer 6i R4.11)

    I use an action item on a Forms module to call a Reports module. This Report has one argument, and its value is provided by the Forms module. When I run the Form and press the button (= action item), the Reports parameter Form appears. How can I suppress the parameter Form since the value is provided by the Form?
    Setting the display property of the argument to 'No' doesn't work.

    Hi Harm,
    There is one parameter called 'PARAMFORM', this is text parameter saying report
    whether it has to show the Parameter form or not.
    If we set this to 'NO' when calling report,i t won't show the Parameter Form.
    Another way is...
    Open the report and delete all the items from the Parameter form layout.
    Pass all the parameters from the form. Now it wont show the parameter form.
    Think it will help you.
    Thanks.
    Siva.

  • How to build a BIG TREE with Tree-Form layout

    Hi,
    I do have a self-referenced table with our org structure - 15 000 positions.
    I do want to create a tree with this structure.
    Requirements :
    a, to have a tree-form layout
    b, to have search capabilities
    I have tried to use several combinations (maybe all)
    - from using only one View object and create recursive tree - doesn't even run
    - to use two View objects, first as top level nodes, the other as the rest - it runs
    but I can search only top level, and what is worse, by clicking on the node for showing additional information (tree-form layout) I'm waiting for ages for seeing the info
    (it seems that all records are loaded one by one into AS)
    Could you provide some ideas how to deal with this ?
    Thanks.

    I am sorry, this is beyond the scope of this forum.
    As with any functionality not directly provided by JHeadstart, you can build it yourself using the ADF design time tools in JDeveloper. Please use the JDeveloper forum for help on this first step.
    Then, to keep your pages generatable you can move these customizations to custom templates. We are happy to help you with this last step, should you have problems there.
    Steven Davelaar,
    JHeadstart Team.

  • How to hide 'SAVE' button in adobe form layout

    Hi  Friends,
    I have a requirement to hide 'SAVE' button in adobe form layout .They dont want to save the form .
    Is there any way to achieve this .I have gone through scn ,but couldnt find the proper solution
    Thanks and Regards,
    Subeesh Kannottil

    Hi Subeesh,
    Are you talking about restricting the User from Saving the Adobe Form Output. 
    Regards,
    Sivanand Ala

  • Can i set the content of input text in a form layout in the uix page center

    Hi
    i have a simple question, how can i set the content of an input text in a form layout in the .uix page center?
    i saw in the page properties but i didn't found.
    thank you for your help.
    Edited by: Islem on 19 déc. 2008 00:22

    Sirrick,
    If I understand your question correctly, you want to programmatically set how many array elements (clusters) to show. You can do this with the Array properties: Number of Rows and Number of Columns. Please see the attached VI.
    Zvezdana S.
    National Instruments
    Attachments:
    Array_Elements.vi ‏20 KB

  • Create a new class in pe51 form layout

    Hi experts,
                   I want to create a new form  layout in pe51 for payroll register. In standard form class maximum columns is 132 but i want
    more than 300 columns for payroll register. so its possible to to create new zform class in pe51. If its possible pls guide me.
    Thanks in advance.
    Thanks & Regards
    G.Vendhan

    Hi, I am working on the same thing and created a form in PE51 using Form class CKT0 which gives me 255 columns.  I am however having problems with finding some of the fields I need.
    Thanks.
    N

  • How to right align a read only numeric field in a panel form layout

    Hi, does anyone know how to right align a read only numeric field in a panel form layout? I am using: Style Class = AFFieldNumberMarker, but it only seems to work if the field is disabled. Disabling the field gives it a difference appearance that does not look right on our forms. These are calculated fields, which cannot be modified, so read only is necessary.
    I have looked online for some answers, and it seems that others are having similar issues.
    I have tried different combinations for the properties, but so far I cannot get it to work.
    Thanks
    Judy
    I am using JDEV 11.1.1.5

    Sorry for the delay in my response. Here is the code
    <af:inputText value="#{bindings.TotalAirlineCostEst.inputValue}"
    label="#{bindings.TotalAirlineCostEst.hints.label}"
    required="#{bindings.TotalAirlineCostEst.hints.mandatory}"
    columns="#{bindings.TotalAirlineCostEst.hints.displayWidth}"
    maximumLength="#{bindings.TotalAirlineCostEst.hints.precision}"
    shortDesc="#{bindings.TotalAirlineCostEst.hints.tooltip}"
    id="it20" readOnly="false"
    disabled="true"
    styleClass="AFFieldNumberMarker">
    <f:validator binding="#{bindings.TotalAirlineCostEst.validator}"/>
    <af:convertNumber groupingUsed="true"
    pattern="#{bindings.TotalAirlineCostEst.format}"
    type="number"
    maxFractionDigits="0"/>
    </af:inputText>
    thank you,
    Judy

  • SOFFICEINTEGRATION143 Error in ISR when trying opening adobe form layout

    Hi,
    I'm running into SOFFICEINTEGRATION143 error when trying to open any adobe form layout in the ISR secenario definition. Can anyone let me know why I'm getting this error and what the solution is?
    FYI, I'm using SAP gui version 640 Final Release, File Version 6404.4.14.2987, build 781208, Patch level 14
    I do have Adobe LifeCycle Designer 7.1, Reader 8 and MSOffice 2002.
    Thanks in advance.
    Giri.

    Hi, Giri. Did you solve your problem?
    I think I m having similar problem. I installed Sap Gui 7.1, SAP interactive form and Adobe LiveCycle Designer ES.
    I was able to open abode form layout in the transaction SFP. However, after I upgraded my Adobe to 7.0.9. (previous version is 7.x.x). I get the error SOFFICEINTEGRATION143 when try open again.
    I uninstalled Adobe 7.0.9 and installed Adobe 8.1 but it still get the same error.
    Can anyone help?
    Thanks in advance.

  • Adobe form layout version retrival

    Hi Experts,
    I have a problem in opening the adobe form layout.I am facing an error message error while opening the document.I checked in the production system same problem there also.
    it is possbile to retrevive the older version of layout?
    Adobe life cylce designer is installed properly. But i am able to open the layout of another adobe form in another development system.
    Please suggest me on this.
    Regards,
    Jayant.

    Hi,
    ADS needs to be configured properly,
    this is the part of BASIS team.
    regards
    Ramchander rao.K

  • Issue with Adobe Form Layout

    Hi,
    I have an issue with the Adobe Form Layout.Although I have added a field in the Context Menu of the Form Builder but the context has not been added to the Data View.
    Could you please help me to understand how to include the parameters and structures that we define in the context and add them to the Data View in layout?As far as I know, it is done automatically.But in this case I don't understand what the problem is.
    Please help me.
    Thanks,
    Sandeep.
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Jul 14, 2009 4:10 PM

    it is normally done automatically. Do ANY of your fields show in your DATA VIEW? Or, are you just missing the new one?
    If you're only missing the new one, make sure your Context has the field defined correctly and generated.. Then make sure you have updated the mapping in your View Context and generated that.
    After those 2 things, your field should now show.
    You cannot, as far as I know, define an attribute as any sort of TABLE - we have a common structure that has several Table Types in it. When we import that structure, we have to delete those attributes and create Nodes to mimick those tables.
    If you've accidentally included a Table type as an attribute, you won't see any fields in your Data View.
    EDIT: by the way, there's an Adobe Interactive Forms Forum where you should ask these kinds of questions.
    Edited by: robert phelan on Apr 2, 2009 8:51 PM

  • Master-detail page with form layout -- insert only -- not in create mode

    JDeveloper 10.1.3.1 with JHeadstart
    I have the following master-detail structure in JHeadstart:
    Group 1, Table a, Layout: table-form
    Group 2, Table b, Layout: table-form
    Group 3, Table c, Layout: form
    Group 4, Table d, Layout: form (on same page as master table c)
    Table a, b and c are updatable (insert, update and delete).
    I have problems with the last page, tables c and d, master-datail both in form layout.
    The master-table (c) is not an insert-only table, the detail table needs to be an insert-only form on the same page as the master table c.
    Settings Table d:
    Advanced search and quick search: none
    Autoquery: disabled
    Single row insert allowed (other options in Operations disabled)
    In my view object I have used the settings in the JDeveloper guide 8.1.2 ('no rows...' in tab Tuning).
    I run my application in JDeveloper (with the option run in my ViewController-project, which means that I am not running my detail page directly in JDeveloper??) and when I open this last page, the detail form is not in create mode (I see no rows found and a create rows button).
    I have read several threads in this forum, but I do not know how to solve this problem.

    This does not work.
    In my first post I made an mistake in describing my application, it is not a table-form, but a tree-form application:
    Group 1, Table a, Layout: tree-form
    Group 2, Table b, Layout: tree-form
    Group 3, Table c, Layout: tree-form
    Group 4, Table d, Layout: form (on same page as master table c)
    If I override the executeQueryForCollection method in the ViewObjectImpl of table d I get a message ('JBO-27122: SQL-fout tijdens voorbereiding van statement' and 'java.sql.SQLException: OALL8 is in an inconsistent state').
    while clicking on the tree (with table b and c). It seems that the QueryForCollection method is being executed to early.

  • Question regarding Form layout in Flex

    Hi guyz. Today had a look at form layout
    <mx:Form id="form">
            <mx:FormItem label="horizontal:">
                <mx:Text text="test"/>
            </mx:FormItem>
    </mx:Form>
    gives the output in the format 'label' - 'textbox'. But i want to change the orientation like
    label
    checkbox
    How can i do that. Please explain in detail.
    Thanks and Regards,
    Karthik Jayaraman

    savmoy wrote:
     Since php files are run on the server side, can I assume that my JavaScript validations (which are part of  a php file) will be done on the server side as well, and therefore are secure?
    No. The PHP server processes the PHP only, and then sends the output to the browser, which is where the JavaScript will be executed.

  • How to customise ADF form layout

    Hi,
    I've an oracle form in the below format, how can I create similar form layout using adf form components?
    Field
    Field
    Field
    Field
    Field
    Field
    Box for photograph
    Field
    Field
    Field
    Field
    Field
    Field
    Field
    Field
    Field
    Field
    Field
    Field
    Field
    Field
    Field
    Button
    Button
    Field
    Field
    Field
    Field
    Field
    Field
    Field
    Field
    Field
    Thanks

    Hi Arun,
    here it is...
    <af:panelGridLayout id="pgl1">
                        <af:gridRow marginTop="5px" height="auto" id="gr1">
                            <af:gridCell marginStart="5px" width="20pt" id="gc1" marginEnd="1px">
                                <af:inputText value="#{bindings.EmployeeId.inputValue}"
                                              label="#{bindings.EmployeeId.hints.label}"
                                              required="#{bindings.EmployeeId.hints.mandatory}"
                                              columns="#{bindings.EmployeeId.hints.displayWidth}"
                                              maximumLength="#{bindings.EmployeeId.hints.precision}"
                                              shortDesc="#{bindings.EmployeeId.hints.tooltip}" id="it1">
                                    <f:validator binding="#{bindings.EmployeeId.validator}"/>
                                    <af:convertNumber groupingUsed="false" pattern="#{bindings.EmployeeId.format}"/>
                                </af:inputText>
                                <af:inputText value="#{bindings.JobId.inputValue}" label="#{bindings.JobId.hints.label}"
                                              required="#{bindings.JobId.hints.mandatory}"
                                              columns="#{bindings.JobId.hints.displayWidth}"
                                              maximumLength="#{bindings.JobId.hints.precision}"
                                              shortDesc="#{bindings.JobId.hints.tooltip}" id="it6">
                                    <f:validator binding="#{bindings.JobId.validator}"/>
                                </af:inputText>
                            </af:gridCell>
                            <af:gridCell marginStart="5px" marginEnd="5px" width="20pt" id="gc2">
                                <af:inputText value="#{bindings.FirstName.inputValue}"
                                              label="#{bindings.FirstName.hints.label}"
                                              required="#{bindings.FirstName.hints.mandatory}"
                                              columns="#{bindings.FirstName.hints.displayWidth}"
                                              maximumLength="#{bindings.FirstName.hints.precision}"
                                              shortDesc="#{bindings.FirstName.hints.tooltip}" id="it2">
                                    <f:validator binding="#{bindings.FirstName.validator}"/>
                                </af:inputText>
                                <af:inputText value="#{bindings.LastName.inputValue}"
                                              label="#{bindings.LastName.hints.label}"
                                              required="#{bindings.LastName.hints.mandatory}"
                                              columns="#{bindings.LastName.hints.displayWidth}"
                                              maximumLength="#{bindings.LastName.hints.precision}"
                                              shortDesc="#{bindings.LastName.hints.tooltip}" id="it3">
                                    <f:validator binding="#{bindings.LastName.validator}"/>
                                </af:inputText>
                                <af:inputText value="#{bindings.Email.inputValue}" label="#{bindings.Email.hints.label}"
                                              required="#{bindings.Email.hints.mandatory}"
                                              columns="#{bindings.Email.hints.displayWidth}"
                                              maximumLength="#{bindings.Email.hints.precision}"
                                              shortDesc="#{bindings.Email.hints.tooltip}" id="it4">
                                    <f:validator binding="#{bindings.Email.validator}"/>
                                </af:inputText>
                                <af:inputText value="#{bindings.PhoneNumber.inputValue}"
                                              label="#{bindings.PhoneNumber.hints.label}"
                                              required="#{bindings.PhoneNumber.hints.mandatory}"
                                              columns="#{bindings.PhoneNumber.hints.displayWidth}"
                                              maximumLength="#{bindings.PhoneNumber.hints.precision}"
                                              shortDesc="#{bindings.PhoneNumber.hints.tooltip}" id="it5">
                                    <f:validator binding="#{bindings.PhoneNumber.validator}"/>
                                </af:inputText>
                            </af:gridCell>
                            <af:gridCell id="gc7">
                                <af:inputDate value="#{bindings.HireDate.inputValue}"
                                              label="#{bindings.HireDate.hints.label}"
                                              required="#{bindings.HireDate.hints.mandatory}"
                                              columns="#{bindings.HireDate.hints.displayWidth}"
                                              shortDesc="#{bindings.HireDate.hints.tooltip}" id="id1">
                                    <f:validator binding="#{bindings.HireDate.validator}"/>
                                    <af:convertDateTime pattern="#{bindings.HireDate.format}"/>
                                </af:inputDate>
                            </af:gridCell>
                        </af:gridRow>
                        <af:gridRow marginTop="5px" height="auto" id="gr2">
                            <af:gridCell marginStart="5px" width="50%" id="gc3"/>
                            <af:gridCell marginStart="5px" marginEnd="5px" width="50%" id="gc4"/>
                        </af:gridRow>
                        <af:gridRow marginTop="5px" marginBottom="5px" height="auto" id="gr3">
                            <af:gridCell marginStart="5px" width="50%" id="gc5"/>
                            <af:gridCell marginStart="5px" marginEnd="5px" width="50%" id="gc6"/>
                        </af:gridRow>
                    </af:panelGridLayout>
    I can create 3 rows 3 columns output but when I run it, the columns col2 and col3 are merging into col1.
    thanks

Maybe you are looking for

  • Help with getting this to work!

    Hi, I am trying to get this Java application to work - but nothing seems to happen! Basically, its a chemical formulae analyser, e.g. in CaC03, C is the symbol for Carbon and there is 1 atom of this element, Ca for Calcium (1 atom), O for Oxygen (3 a

  • Error while importing .par file into NWDS

    Hi Experts, For my query I saw a similar thread in sdn forum. the link is given below. /thread/382306 [original link is broken] I have unzipped the par file and inside this there is no other par file. So I have to import this par file only. Can anybo

  • How to upload Unicode encoding files from web?

    Hi everyone, I do not manage to upload Unicode encoding CSV files from web. Currently I use class CL_HTMLB_MANAGER to upload file from web. It works fine with ANSI encoding files, but file content is not uploaded correctly with Unicode encoding files

  • Drawing artifacts with motion under a gradient mask

    Hello, I am having an issue with using a motion under a gradient mask and was hoping someone might have a solution. I have a  transparent png bubble in movie clips that are being randomly sized and  animation started using code. The design has a refl

  • Create multiple copies with multiple develop settings in one keystroke (like PS action)?

    Hi, I'm trying to move over from PS to LR in my tourist photo studio (it's easier to train employees, it's more intuitive, it's cheaper, etc.). However, there is one element missing that I simply can't do without. We're located in a theme park and we