Addint new field to the standard sapscript form.

FOR SALES INVOICE DOCUMENT FORM PRINTING
TRANSACTION CODE: VF01
OUTPUT TYPE : FJCI
PROGRAM NAME: RVADAUS1
SAPSCRIPT FORM NAME: SD_EXPORT_FJCI
ENTRY ROUTINE: ENTRY_FJCI.
STRUCTURE USED FOR THIS OUTPUT TYPE = V55EFJCI
THE QUERY IS AS FOLLOWS:
I WANT TO ADD DATA MODE OF TRANSPORT FROM THE INVOICE DOCUMENT. THE TABLE AND FIELD IS T618-BEZEI.
SO I COPIED THE STANDARD FORM TO ZSD_EXPORT_FJCI AND THE STANDARD PROGRAM TO ZRVADAUS1.
I SUCCESSFULLY FETCHED THAT FIELD DATA.
I APPEND THE STRUCTURE 'ZAV55EFJCI' TO ADD THE ADDITIONAL T618-BEZEI FIELD.
AND WRITE MY SELECT QUERY IN THE ENTRY_FJCI FORM ROUTINE.
THE CODE IS AS FOLLOWS:
data: begin of it_mode_of_tp occurs 1,
      bezei type t618t-bezei,
      end of it_mode_of_tp.
select a~bezei as zzbezei into table it_mode_of_tp from t618t as a
inner join
eikp as b on aexpvz = bexpvz and aland1 = baland inner join vbrk as
c on bexnum = cexnum
where cvbeln = nast-objky and aspras = nast-spras .
loop at it_mode_of_tp.
   v55efjci-zzbezei = it_mode_of_tp-bezei.
endloop.
BUT THE DATA FOR THAT IS NOT GETTING DISPLAYED.
THIS WAS THE FIRST METHOD I FOLLOWD.
THE SECOND METHOD I DID WAS AS FOLLOWS:
FORM ENTRY_FJCI.
     PERFORM PROCESSING.
ENDFORM
FORM PROCESSING.
     PERFORM PRINT_DOCUMENT.
ENDFORM.
FORM PRINT_DOCUMENT.
       CALL FUNCTION 'RV_EXPORT_DOCUMENT_PRINT'
ENDFORM.
IN THIS FUNCTION THE DATA IS GETTING FETCHED FROM THE DATABASE TABLES AND STORED IN THE STRUCURE V55EFJCI.
SO I COPIED THAT FUNCTION.
IN THIS FUNCTION , THEIR IS A INCLUDE PROGRAM 'LV55EF11' FOR FETCHING DATA FOR ENTRY_FJCI FORM ROUTINE.
I COPIED THAT PROGRAM CODE , AND CREATED MY OWN INCLUDE PROGRAM (WHICH I AM STORING IT IN ANOTHER Z PACKAGE.)
AND WRITTEN MY ABOVE CODE IN THAT PROGRAM. BUT WHEN I DO THIS, NOITHING GETS DISPLAYED , EVEN THE PREVIOUSLY COMING DATA ALSO NOT GETTING DISPLAYED.
HOW SHOULD I PROCEED.

you said you copied layout(form) SD_EXPORT_FJCI to ZSD_EXPORT_FJCI,
you updated program to fetch datat & populate v55efjci-zzbezei field.
Now
- you need to modify layout(form) ZSD_EXPORT_FJCI via SE71 to insert your field in one of the windows where it has to be printed (sap script knowledge is required here).
- you need to either modify SAP output type FJCI to use your program/layout(form) or you need to create your own output type and assign your form/program to it, and in addition to that if you define your own output type - yo have to add it to output determination procedure, to access sequences, add condition records to condition table... so it's picked up by the invoice.

Similar Messages

  • Addition of new fields in the standard report QM15

    Dear Experts,
    i need to add new fields to the standard report t.code QM15 which display the list of items: selection of notifications.
    the fields i want to add are:
    1. batch no
    2. Sample no
    3. Main vendor
    4. text for CDR
    plz let me know how can i do this. if any one can help me with screenshoot doc. this is really helpfull.
    Thanks
    Sachin
    Moderator message: "spec dumping", please work yourself first on your requirement.
    Edited by: Thomas Zloch on Sep 28, 2011 9:45 AM

    Hi,
    Have you added the selection text for the field ? also check the activation status.
    Regards
    Bikas

  • Adding a new field to a standard webdynpro component's layout

    Hi all,
      I need to add a new field to a standard webdynpro component's( in my case the component is ''/SAPSRM/WDC_UI_SC_DOTC_BD')  layout.How do i go about adding a new field to the standard component's lay out?
    can anyone help me with the necessary details?
    Regards,
    Abhinay.

    Check if this is useful to you (Login required)
    https://websmp105.sap-ag.de/~sapidb/011000358700001969972008E.pdf
    Rgds/Kiran

  • Steps for adding a new field in the sapscript

    pls give me the step by step procedure to insert a new field in the sap script.
    like wat i need to to do in the form layout/line editor
    and wat n how i need to change in the print program like subroutine, etc..
    where should i use the itcsy structure?

    Hi,
    This will give you a step to step procedure for SAPScript.
    <a href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRPROG/BCSRVSCRPROG.pdf">SAPScript</a>
    regards,
    Amit
    Reward all helpful replies.

  • How to add new fields to the system form (Ex.expenses to a/r invoice form)

    hi
    can any one tell me how to add new fields to the system form (Ex.expenses to a/r invoice form)
    i want to add expenses field to system a/r invoice form and connect data base also.
    i used the code of samples\11.system form manipulation(vb.net) but i'm not able to get it....so can any one help with code or concepts.
    reply soon plz..
    thankQ

    If I understood you correctly, you are just trying to add new fields to the invoice form and then use them in your form. you should first go and add the field to your tables, which you would do by going to Tool --> User Defined Fields --> Manage User Fields. There are different documents or categories given. For ex. for invoices, Sales Orders you would add your field under the Marketing Documents. If you want the field to be just one per invoice, add it to the Title, otherwise if you want a field per invoice or Sales Order line, add it to the Rows section. Once you have done that then you can just create a edit box or drop down to represent the field and set the datasource for that to your field. If you want example code to do that, let me know.

  • CProjects - Adding a new field to the detail screen of object link

    Hi All,
    I've a requirement of adding a new field to the detail screen of object link. But the field is a combination of 3 other standard fields.
    Please let me know how could i realise this functionality?
    Thanks in advance.

    Hi Srini,
    Thanks for your Reply
    I have kept 01 against the field BSEG-AUGDT and selected the preselect check box also.
    But still that field is not visible in the dynamic selection screen.
    Thanks
    Ajay.D

  • Adding a new field to the Address Data for a business partner

    Hi Experts,
    I am trying to add a new custom field to the address data (all structures and tables) that is linked to a business partner on SAP CRM via EEWB. Structure is the address structure wthin BUS_EI_EXTERN. Table is BUT020. I have been told that it is not possible as there is no Business Object that allows this. When doing an EEWB, the only business object is BUPA, which when selected, adds the new custom field to BUT000. I would like the field to be added to BUT020 (Address Table). This leads me to believe that there is no standard way of doing this, which ultimatley means that it would need to be done manually. Please help me with this predicament.
    Regards
    Yusuf

    The search help exit allows you to modify functionality of search help. If you add a new field to the
    parameter list that is not contained on the selection method you can manually populate it within the search
    help exit.
    This  would be performed within the u2018STEP DISPu2019 section. Once within this section all search help
    data has been retrieved and is stored in table RECORD_TAB (record_tab-string) as one long string value.
    Therefore you need to read table SHLP in-order to locate position of value within string.
    Example:
    To find position of personnel number (PERNR) within elemenory search
    help M_PREMN you would use the following code:
    Loop at record_tab.
         read table shlp-fielddescr into wa_shlp
                                       with key tabname   = 'M_PREMN'
                                                fieldname = 'PERNR'.
    You could then use this information in the following way, for
    example, to find a persons organisation unit:
          select  orgeh endda
            up to 1 rows
            from pa0001
            into (ld_orgeh,ld_endda)
           where pernr eq record_tab-string+wa_shlp-offset(8)
                                                      u201Cpernr length is 8
           order by endda descending.
          endselect.
          select single orgtx
            from t527x
            into ld_orgtxt
           where orgeh eq ld_orgeh and
                 sprsl eq sy-langu and
               ( endda ge sy-datum and
                 begda le sy-datum ).
    If you have added a new field to the end of the parameters list
    the next step is to populate it by adding this data to the end of
    the record_tab string:
      concatenate record_tab-string ld_orgtxt into record_tab-string.
      modify record_tab.
    endloop.

  • Add new field in the Create Support Message Popup Screen

    Hi Experts,
    I need to create Project Code Field in the standard popup screen Create Support Message
    Suggest me any Badi or FM or Bapi or Enhancement to create a new field and update the field value to the Support Message created.
    Please let me know if this is possible or not?
    Thank You,
    Sowjanya Sreekrishna

    Dear Abhijit
    Even after doing PGI, there are some fields which are in editable mode in delivery.  For example, in VL02N, if you select "Goto --> Header --> Shipment, you can see fields like Bill of Lading are in editable mode.
    If you specify what your requirement is, then probably, a better option can be given.
    Thanks
    G. Lakshmipathi

  • How to add new fields to the DME file in F110

    Hi,
    We have a requirement add new fields to the file that is used in  F110.
    .I did go in to DMEE transaction but I hae no idea how to add new fileds to the existing file.
    Can anybody please help me in resolving the issue.
    Thanks
    Venkat
    Edited by: Venkat R on Jun 8, 2009 8:45 AM

    Hi,
    There is no function module for that, We have created our own function module and attached to that field.
    Refer the below code. This will fetch the document number.
    DATA: lwa_item   TYPE dmee_paym_if_type,
            l_fpayp   TYPE fpayp,
            l_fpayhx TYPE fpayhx,
            first_flag TYPE c,
            lv_lifnr   TYPE lifnr,
            voucher_id TYPE string,
            voucher TYPE string,
            invoice_id TYPE belnr_d,
            voucher_len1 TYPE i,
            voucher_len TYPE i.
      TYPES:
      BEGIN OF lt_regup,
            xblnr TYPE xblnr1,
            belnr TYPE belnr_d,
      END OF lt_regup.
      DATA: lt_regup TYPE STANDARD TABLE OF regup,
            lv_regup TYPE regup.
    Hope this helps.
    Raja.A
    Edited by: Raja.A on Feb 16, 2011 7:17 PM

  • KE5Z : UserExit or SAP Note for adding new fields in the report output

    Hi,
    I want to add 2 new fields in KE5Z (Profit Center: Actual Line Items) report output.
    Order reason(AUGRU), Sales Document Type (AUART) fields.
    Is there any UserExit or SAP Note available for this....
    Thanks in advance,
    fractal

    Hi Fractal,
    See if Note 92864 will help you.
    Summary
    Symptom
    Through a modification, it is possible for you to include additional fields in the profit center line-item reports 'actual' and 'plan' (Release 3.1*).
    Additional key words
    KE5Z, KE5Y, RCOPCA02, RCOPCA08 -
    SUPPORTGUIDE 20010613143936 -
    REPORTWRITER,
    SGRW_OM SGRW_PS SGRW_PC SGRW_SL SGRW_PCA SGRW_EC SGRW_LIS
    Cause and prerequisites
    The fields must be located in table GLPCA (for actual) or GLPCP (for plan).
    For Release 3.0F, you should ensure you have applied Note 62511 first.
    Solution
    To include a field in the actual line item report, proceed as follows:
    Call the ABAP/4 Dictionary (Transaction SE11) and display table GLPCA. You can then find in a line the field name and data element for the field you want to include.
    Return to the initial screen of the ABAP/4 Dictionary. Now change the structure RPCA2. If the structure does not yet contain the field, you select Edit -> Insert field; enter the field name and data element. Do not insert the new field at the beginning of the structure but in the rear half of the structure.
    Then save and activate the structure.
    Now call the ABAP Editor (Transaction SE38). Change the source code of program RCOPCA02. Insert the lines set out in the attachment in FORM routine FIELDCAT_FILL. When you do this, replace SGTXT by the field name of the field. If you normally want the field to be displayed when you the access the report, delete the line   afield-no_out      = 'X'.                "<<<< insert Note 92864 .
    You should note that the place where you insert the lines influences the position of the column in the report list.
    To include a field in the Plan-line-item report, carry out the same procedure except with table GLPCP, structure RPCA8 and program RCOPCA08.
    Note: Pls check if these 2 fields are available in any of the layout versions you have available with the transaction.
    Cheers,
    Vikram
    Pls reward for helpful replies!!

  • Adding a new field in a standard ALV reort

    HI,
    I have a requirement of adding a new field to Standard ALV report. The TCODE is CN50N. When you execute it and gives the project as input it will display an ALV report. i want to add another filed to that ALV report. The program it 's using is RPSISKB000. How to do it???
    regards
    sandeep

    Hi,
         Check in the ALV output whether these fields are already there and not displaying in the ALV output, if the fields are not at all printing in the ALV output,then copy the Program to Z program and change it.
    write the Code to add the new fields to the internal table and change the Field catalaog to come your fields in the ALV output then print it
    Regards

  • SO10 - Add Fields in the Standard PAMA Text

    Dear All,
    Scenario:
    When an Employee is hired a mail is sent to the Manager with the new employee details.
    I have maintained a dynamic action for the same and the std text to be sent is maintained under the PAMA (Text ID) in SO10.
    Query :
    The text which is sent to the manger should consists of the following fileds :
    1.) Per Number (P0000 - PERNR)
    2.) Joining Date (P0000 - BEGDA)
    3.) Per Area      (PSPAR - WERKS)
    4.) Position       (PSPAR - PLANS)
    Can any any one pls help me, how to insert these fields into the Standard Text.
    Thanks in Advance
    Regards,
    Abhishek

    Hi Revathi,
    Thanks a lot for your reply.
    I have already seen the SAP Std text which you have mentioned i.e, "MAIL_FOR_I0001_A"
    But when you see that message all the varibales like (&P0001-PERNR&, &P0001-ENAME&, etc etc) are not in the normal font they are highlighted, and when i write a code with respect to my requirements it is not highligted and the message is shown without the field values in the mail.
    My Question was how to insert those variables into the template.
    I hope you can now easily answer my question.
    Regards,
    Abhishek

  • Adding fields to the standard datasource

    Hi All,
    The custmer wants to add some fields to the Material master. I have found that those fields are already there in the standard extractor but are not being mapped to any infoobject.Do I need to create new info objects to map them or will there be a standard info object for all the fields in the standard datasource?
    Thanks a lot,
    RPK.

    Hi CP,
    Thanks for your reply. The fields are available in datasource but are not mapped to any infoobjects in the Trans Structure. If I have to populate them in BW then I need to map them to some info objects. I am clear upto this. Now my doubt is...since the standard datasource already contains these extra fields which I need to add, will there be standard info objects already created for these fields or do I need to create some Z info objects to map them with? How can I check if there are some standard infoobjects for these fields.
    Thanks,
    RPK.

  • MM-SUS:You can add new fields in the BSP?

    Hi Gurus,
    I wonder if you can add new fields in the BSP of invoice in SUS.
    I need to enter new fields and then to perform validations using these new fields.
    know how to work toward a solution?
    Cristian

    Hi Cristian,
    As Akash has mentioned go to BSP application SRMSUS in SE80. Here you can copy standard invoice views and controler to z and then change them.
    You can then create Z tables to store all values entered in this screen. You can ask your programmer to put validity checks accordingly.
    Regards,
    Nikhil

  • Add fields to the standard report QM15

    i want to add fields to the standard report.
    t.code QM15 which display the list of items: selection of notifications.
    the fields i want to add are:
    1. batch no
    2. Sample no
    3. Main vendor
    please let me know how can i do this. if any one can help me with screenshot doc. this is really helpful.
    Thanks

    Hi experts,
    I have done with the z** creation of the standard report. I also create the z*include for the standard includes which are in the standard program. But I not able to find the fieldcatlog or include where I can add my new fields.
    But I tried with one structure tht is standard structure in tht standard report so i make it as z*structure and I append my new fields to this structure. I debug the report and this works fine and also shows output, but at output when I change the layout to see these new fields it shows dump.
    Then I tried with one more thing to give the positioning to my new added fields. (This is what u can say column positioning ).
    When I execute this,it goes to dump screen.
    Now I don't what to do with this.
    If any one like to see the code. Plz let me know I will post the code.
    Or if any one have any document on this plz share. Or any other solution.
    Thanks in advance.
    Thanks
    Sachin

Maybe you are looking for

  • Time machine is very slow....

    After upgrading to ML, time machine seems very slow. I usually make back up once a week. First back up took nearly a day, but completed successfully. 

  • How do I combine two FLVs into a split frame single player?

    Hello. I want to know how to duplicate the functionality on http://www.vcasmo.com There is what appears to be a single flash player, but two separate FLVs (one video, and one PPT). The PPT is synced to the video based on timing settings created when

  • Customer Party Account Not displayed

    Dear All, After Saving the billing document, If I see the accounting document, The customer party account is not displayed. Instead I see a G/L account in place of my customer account. Calculations are correct but cant see the customer account. Need

  • While in zh|ja locale, zh|ja fonts are used even for Latin... why?

    One thing that has always bothered me is that my system uses funny fonts when it is running in a non-English locale, and I think I finally found the culprit. When I check for font matching in English everything seems normal: $ fc-match -s "sans" Deja

  • Why lock-order can use in cascade delete?

    Hi. http://edocs.beasys.com/wls/docs81/ejb/DDreference-cmp-jar.html#1113798 #Function #Use this flag to specify the database locking order of an entity bean #when a transaction involves multiple beans and exclusive concurrency. #The bean with lowest