Please help for using perform in SAP script

As subject.
My sap script code as below:
/: PERFORM GET_CHAMT_DATE IN PROGRAM ZRAP004
/:USING    &SPELL-WORD&
/:CHANGING &SPELL-WORD&
/:ENDPERFORM
My program ZRAP004 code as below:
FORM get_chamt_date USING u_iword TYPE spell-word
                   CHANGING u_oword TYPE spell-word.
CONCATENATE u_iword '元整'(t01) INTO u_oword.
endform.
This form is for check printing.
It's by standard function 'F110' to excute check printing.
But when i finished this transaction. System return error message as below:
<b>This routine contains 2 formal parameters, but the current call
contains 4 actual parameters.</b>
Please help. Thanks a lot!!

Hiii
PERFORM CDE_CENT IN PROGRAM ZKRPMM_PERFORM_Z1MEDRUCK
/:USING &EKKO-EBELN&
/:CHANGING &CDECENT&
/:ENDPERFORM
The report :
REPORT zkrpmm_perform_z1medruck .
DATA : BEGIN OF it_input_table OCCURS 10.
       INCLUDE STRUCTURE itcsy.
DATA : END OF it_input_table.
déclaration de la table output_table contenant les
variables exportées
DATA : BEGIN OF it_output_table OCCURS 0.
       INCLUDE STRUCTURE itcsy.
DATA : END OF it_output_table.
DATA : w_ebeln LIKE ekko-ebeln,
      w_vbeln LIKE vbak-vbeln,
      w_zcdffa LIKE vbak-zcdffa.
FORM CDE_CENT
FORM cde_cent TABLES input output.
it_input_table[] = input[].
it_output_table[] = output[].
READ TABLE it_input_table INDEX 1.
MOVE it_input_table-value TO w_ebeln.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
           input  = w_ebeln
      IMPORTING
           output = w_ebeln.
SELECT SINGLE zcdffa FROM ekko
INTO w_zcdffa
WHERE ebeln = w_ebeln.
it_output_table-name = 'CDECENT'.
MOVE w_zcdffa TO it_output_table-value.
MODIFY it_output_table INDEX 1.
output[] = it_output_table[].
ENDFORM.

Similar Messages

  • I have been able to access a site regularly but in the last few days get a message: "cookies required to access this site." please help, I use this site for work daily:)

    I have been able to access a site regularly but in the last few days get a message: "cookies required to access this site." please help, I use this site for work daily:)

    Goto > Settings > Safari... Enable Cookies > Always
    Good luck!

  • Driver program for the Dunning letter SAP Script

    Hello All,
    Can someone please tell me how to find the "Driver program for the Dunning letter SAP Script". I checked the Transaction OB96 but I dont find any Dunning scripts here i.e., the standard Dunning letter SAP Script F150_DUNN_01.
    Is there any Transaction like NACE of logistics for FI module to find the Driver programs. My requirement is to find the Driver program for the Dunning letter SAP Script and have a new Driver program instead of the standard SAP given driver program. Example is in transaction NACE we can change the driver program for Invoice like from RVADIN01 to ZRVADIN01.
    Thanks and Regards,
    SNK.

    Yes you can, using FIBF, change the FM associated with event 1720 like when SapScript is replaced with SmartForms. Look at [Define Dunning Forms (with SAP Smart Forms)|http://help.sap.com/saphelp_46c/helpdata/es/7d/c7a0a535e1d311ba4d0800060d888b/content.htm] for reference.
    But notice
    - PRINT_DUNNING_NOTICE call many FM of the same FG which share the same global data area.
    - During following upgrades of your system you will have to manage a copy of standard.
    Regards,
    Raymond

  • Perform in SAP script

    how should i call a perform statement in SAP script
    I have been trying to use it in sap script but it is giving me a dump
    the code extract looks as follows:
    iN DRIVER'S PROGRAM
    FORM POP_ADD USING V_parvw like vbpa-parvw.
    READ TABLE i_addr WITH KEY WF_PARVW = 'WE'.
    ENDFORM.
    IN SAP SCRIPT
    /:   DEFINE &V_PARVW& = &VBPA-PARVW&          
    /:   PERFORM POP_ADD IN PROGRAM ZSD_SCR_INVOICE
    /:   USING            &V_PARVW&               
    /:   ENDPERFORM                               
    /    &i_addr-WF_PARVW&                        
    IT IS GIVING SHORT DUMP SAYING
    In a subroutine call, there were more parameters than in the                  
    routine definition.                                                           
    Error in ABAP application program.                                                                               
    The current ABAP program "ZSD_SCR_INVOICE " had to be terminated because one of
    the                                                                          
    statements could not be executed.                                                                               
    This is probably due to an error in the ABAP program.

    Hi,
    The PERFORM in your program should have the following syntax:
    FORM POP_ADD TABLES IN_TAB  STRUCTURE ITCSY
                        OUT_TAB STRUCTURE ITCSY.
    READ TABLE in_tab WITH KEY 'V_PARVW'.
    CHECK sy-subrc EQ 0.
    ENDFORM.
    Take a look at http://www.sapfans.com/forums/viewtopic.php?t=131082&highlight=perform for an example of the required syntax.
    Hope this helps.
    Regards

  • How to retrieve data from a function module and use it in sap script??

    I have a report program, which calls a function module. This function module internally calls an include program. In this program, I have a variable which is to be used in the sap script. How can I send this variable to the sap script

    Hi,
    In your case, Include prog is part of FM, no need to treat it as an Entity.
    Now, Your Answer -
    In SCRIPT - IN Page Window -->
         PERFORM GET_MVAT_TIN IN PROGRAM Z_SCRIPT_PERFORMS_ABAPDB3
         USING &VBDKR-KUNRE&
         CHANGING &STCD1&
         CHANGING &STCD2&
         ENDPERFORM
         IF &STCD1& <> ' '
         <B>MVAT Number :</> &STCD1&
         ENDIF
    Then go to SE38 --> Creat prog with type - Subroutine pool
    In that Write FORM statement for this PERFORM.
    FORM get_mvat_tin TABLES inttab STRUCTURE itcsy
                             outtab STRUCTURE itcsy.
      DATA : v_kunre TYPE kna1-kunnr,
             v_stcd1 TYPE kna1-stcd1,
             v_stcd2 TYPE kna1-stcd2.
      LOOP AT outtab.
        CLEAR outtab-value.
        MODIFY outtab.
      ENDLOOP.
      READ TABLE inttab INDEX 1.
      v_kunre = inttab-value.
      IF v_kunre CA sy-abcde.
      ELSE.
        UNPACK v_kunre TO v_kunre.
      ENDIF.
       " Here You can take your Funcion module ***************************
      SELECT SINGLE stcd1 stcd2 FROM kna1 INTO (v_stcd1, v_stcd2)
                                         WHERE kunnr = v_kunre.
      IF sy-subrc = 0.
        READ TABLE outtab INDEX 1.
        WRITE v_stcd1 TO outtab-value.
        MODIFY outtab INDEX 1.
        READ TABLE outtab INDEX 2.
        WRITE v_stcd2 TO outtab-value.
        MODIFY outtab INDEX 2.
      ENDIF.
    ENDFORM.                                

  • How to implement 'Context Sensitive Help' for Workforce Performance Build Tool.

    Hi Gurus,
    We have a requirement to implement ‘Context Sensitive Help’ for Workforce Performance Build Tool. Please let me know how to go about implementing the "Context Sensitive Help".
    It will be great if you can share some links to the documents and screenshots.
    Thanks,
    Sanjiv Karmakar

    Hi Sanjiv,
    do you you mean expand the Help Menu => Pull Help or do you mean
    EPSS => push Help?
    in case pull help please tell me exactly which system GUI or EP and version you are using.
    many different scenarios are possible.
    Tom
    P.S. Please take care of  the name is Workforce Performance Builder or maybe in-official WPB.
    many people ask in the HCM area for help, this is the reason why we do not observe all discussion.
    The name in the title will help us to find your questions on time.

  • I have to upload video from my hewlett packard t200 camcorder to my mac. but mac won't recognize the camcorder files. i even bought flip4mac by tele stream which so far is useless. please help me use my camcorder with my iMac os mountain lion 10.8.2

    i have to upload video from my hewlett packard t200 camcorder to my mac. but mac won't recognize the camcorder files. i even bought flip4mac by tele stream which so far is useless. please help me use my camcorder with my iMac os mountain lion 10.8.2
    i tried to get the installation disc for the camcorder but mac wont' recognize it becaue it is windows based i guess.
    i just bought the camcorder a few months ago and when my computer crashed thought i'm finally getting a mac...it's been a costly venture which has resulted in more frustration than before my pc.
    now the things i want to use with my mac that i thought would be even simpler...are not even useable...
    help

    That camera shoots H.264 in an .avi wrapper.
    You will have to transfer the files via the Finder.
    Get a free copy of MPEG Streamclip and convert them to QuickTime .mov using the H.264 codec if you are presumably editing in iMovie.
    Note that your list of video codecs won't look like mine as I have Final Cut Pro, but H.264 is definitely an option for you.

  • Struggling with Comma for an amount in sap script

    Hi Experts
    I am strugling with comma for an amount in sap script .
    For ex: 1234.56  and i need 1,234.56
    I tried  system->userprofile->owndata->Default(Tab)->Decima Notation 1,234,567..89(Selected)
    and i did use /:Edit Mask Field name  but i am not getting comma.
    Thanks & Regards
    Reddy

    Hello,
    In the driver program, assign the amount to a variable of type P and use that variable to display in the script. You will get the commas.
    Vikranth

  • I have updated my iPhone 4s to iOS7 but when i connect it to itunes on my PC it give me a msg to restore your iPhone in summary tab, Please help m using win 7 and updated itunes.

    I have updated my iPhone 4s to iOS7 but when i connect it to itunes on my PC it give me a msg to restore your iPhone in summary tab, Please help m using win 7 and updated itunes.

    What is showing on the screen of the iPhone?
    Does iTunes say the iPhone is in recovery mode?

  • Please help for my iphone 4 unlock

    please help for my iphone 4 unlock

    Apple store said my iPhone 4 had an LCD issue and that is why slide to unlock is frozen.  My warranty ran out so it would cost approx. $150 to repair it he said.  Time for a new phone but not sure I want another iPhone now.

  • Please help. Using Ipad 2 . No connection error iPad 2 Wi-Fi, iOS 7

    Please help. Using Ipad 2 . No connection error
    iPad 2 Wi-Fi, iOS 7
    how to start back my i pad

    Please see: iOS: Restore errors 4005, 4013, and 4014
    Regards,
    Steve

  • Please Help for the Query

    Please Help for the Query
    Hi frds please help me for the below query.What I want to do is to pull out the data from below table :-
    date ticker indicator
    03/13/2008 3IINFOTECH -8
    03/18/2008 3IINFOTECH -4
    03/25/2008 3IINFOTECH -5
    03/27/2008 3IINFOTECH -3
    as such :-
    date ticker indicator
    03/13/2008 3IINFOTECH -8
    03/25/2008 3IINFOTECH -5
    03/27/2008 3IINFOTECH -3
    Here I want to find the Trend i.e either asc or desc order from the lowest indicator.
    In the above sample data -8, -4, -5, -3 out of which I want the asc order data -8, -5, -3 and exclude -4 data.Because the asc order -8, -5, -3 will not follow.
    So I want the data
    date ticker indicator
    03/13/2008 3IINFOTECH -8
    03/25/2008 3IINFOTECH -5
    03/27/2008 3IINFOTECH -3

    SQL> CREATE TABLE BORRAME(FECHA DATE, INDICA VARCHAR2(100));
    Tabla creada.
    SQL> INSERT INTO BORRAME VALUES(TO_DATE('03/13/2008','MM/DD/YYYY'), '3IINFOTECH -8');
    1 fila creada.
    SQL> INSERT INTO BORRAME VALUES(TO_DATE('03/18/2008','MM/DD/YYYY'), '3IINFOTECH -4');
    1 fila creada.
    SQL> INSERT INTO BORRAME VALUES(TO_DATE('03/25/2008','MM/DD/YYYY'), '3IINFOTECH -5');
    1 fila creada.
    SQL> INSERT INTO BORRAME VALUES(TO_DATE('03/27/2008','MM/DD/YYYY'), '3IINFOTECH -3');
    1 fila creada.
    SQL> COMMIT;
    Validación terminada.
    SQL>
    SQL> SELECT FECHA, INDICA
      2  FROM BORRAME
      3  WHERE SUBSTR(INDICA,INSTR(INDICA,'-',1)+1,LENGTH(INDICA)) <> '4'
      4  ORDER BY SUBSTR(INDICA,INSTR(INDICA,'-',1)+1,LENGTH(INDICA)) DESC;
    FECHA                                                                
    INDICA                                                               
    13/03/08                                                             
    3IINFOTECH -8                                                        
    25/03/08                                                             
    3IINFOTECH -5                                                        
    27/03/08                                                             
    3IINFOTECH -3                                                        
                    

  • Hello. Please help. for unknow reasons, I am not getting any of my mail on anything, nothing on my iphone, my outlook or even when I log into icloud online ???   any one else having troble??   please help   I need my mail

    Hello. Please help. for unknow reasons, I am not getting any of my mail on anything, nothing on my iphone, my outlook or even when I log into icloud online>???
    any one else having troble??
    please help
    I need my mail

    Hello, DragonStudios. 
    Thank you for visiting Apple Support Communities.
    Here are a couple troubleshooting resources I would recommend when experiencing issues with iCloud Mail.
    iCloud: Troubleshooting iCloud Mail
    http://support.apple.com/kb/TS4002
    iCloud: Account troubleshooting
    http://support.apple.com/kb/TS3988
    Cheers,
    Jason H.

  • Please help, i used to have various colors to select from when selecting FILL in Keynote such as red, now I only have a few pastel colors. I cannot seem to fix this problem to get the original colors back. Can someone please advise what I need to do.

    Please help, i used to have various colors to select from when selecting FILL in Keynote such as red, now I only have a few pastel colors. I cannot seem to fix this problem to get the original colors back. Can someone please advise what I need to do.

    i have on my ipad2 and re-download it - but I can't afford to loose the presentation that I currently have ....??
    Are you using Keynote on an iPad?
    If so you posted in the wrong forum, this is the Keynote Mac discussion and it is a different application. I dont know how the iPad works at all, so I cant help you, post in the Keynote iOS discussion.
    If you are using a Mac, the colours palette is accesed by clicking on the colour well (arrowed) and then selecting a colour chip or changing the color in the colour wheel.

  • Help reqd for finding TAXES & CONDITIONS FOR GIVEN PO IN SAP-SCRIPT

    HI ALL,
             Currently iam working on SAP-SCRIPT developing PO in that i displayed fields like EMATN TYPE EKPO-EMATN,( material no. )
                 TXZ01 TYPE EKPO-TXZ01, ( long text )
                 MEINS TYPE EKPO-MEINS, ( units )
                   MENGE TYPE EKPO-MENGE (quantity)
    now i want to display taxes & conditions for given ematn no.( material no . ) so from which tables i should get the data  how to display. plz help me.
    thanks in advance.
    Regards,
    mahesh dudam

    Hi !!
      for this please study teh following extract :
    All pricing values are maintained in the KONV table for the respective pricing condition . Extract these values from KONV table by passing EKKO-KNUMV values for the Purchase order number from the EKKO purchase order header table .
    ************************************************************************88
    FORM GET_PRICING_DATA  USING    P_KNUMV.
      SELECT * INTO TABLE I_KONV
                FROM KONV
                WHERE KNUMV = WA_EKKO-KNUMV.
      IF SY-SUBRC = 0.
        SORT I_KONV.
      ENDIF.
    ENDFORM.                    " GET_PRICING_DATA
    *&      Form  get_tax_details
    extract Tax item details.
         -->P_EBELp  for purchase order item.
    FORM GET_TAX_DETAILS  USING    P_EBELP.
      DATA : L_OCTROI LIKE KONV-KWERT,
            L_BASE LIKE KONV-KWERT,
            L_OTHERS LIKE KONV-KWERT,
            L_DISCOUNT LIKE KONV-KWERT,
            L_PFORWARD LIKE KONV-KWERT,
            L_INSU LIKE KONV-KWERT,
            L_NUM LIKE I_KONV-KUMZA VALUE 1,
            L_DENO LIKE I_KONV-KUMNE VALUE 1,
            L_KPEIN LIKE KONV-KPEIN VALUE 1,
            L_FRT LIKE KONV-KWERT,
            L_CHAR(15).
    *-- getting numerator and denominator for base value.
      READ TABLE I_KONV  WITH KEY KSCHL = 'PBXX'.
      IF SY-SUBRC = 0.
        L_NUM = I_KONV-KUMZA.
        L_DENO = I_KONV-KUMNE.
        L_KPEIN = I_KONV-KPEIN.
      ELSE.
        READ TABLE I_KONV  WITH KEY KSCHL = 'PB00'.
        IF SY-SUBRC = 0.
          L_NUM = I_KONV-KUMZA.
          L_DENO = I_KONV-KUMNE.
          L_KPEIN = I_KONV-KPEIN.
        ELSE.
          READ TABLE I_KONV  WITH KEY KSCHL = 'P001'.
          IF SY-SUBRC = 0.
            L_NUM = I_KONV-KUMZA.
            L_DENO = I_KONV-KUMNE.
            L_KPEIN = I_KONV-KPEIN.
          ELSE.
            READ TABLE I_KONV  WITH KEY KSCHL = 'P000'.
            IF SY-SUBRC = 0.
              L_NUM = I_KONV-KUMZA.
              L_DENO = I_KONV-KUMNE.
              L_KPEIN = I_KONV-KPEIN.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDIF.
      CLEAR : V_OCTROI,V_OTHERS, V_DISCOUNT,V_PFORWARD,V_INSU,V_FTR.
      LOOP AT I_KONV WHERE KPOSN = P_EBELP.
    *-- Considering the numerator denominator and UOPricing
        IF   I_KONV-KPEIN = 0  .
          I_KONV-KUMZA = 1.     " Numerator
          I_KONV-KUMNE  = 1.    " Denominator
          I_KONV-KPEIN  = 1.    " Unit of pricing
        ENDIF.
       IF NOT I_KONV-KWERT  IS INITIAL .
         IF  I_KONV-KRECH = 'C'  AND  I_KONV-KSCHL <> 'PB00'
           AND I_KONV-KSCHL <> 'PBXX'.
           I_KONV-KWERT  = ( I_KONV-KWERT * I_KONV-KUMZA  )
                           * L_KPEIN / ( I_KONV-KUMNE * I_KONV-KPEIN ).
         ELSEif I_KONV-KRECH = 'C'  AND  I_KONV-KSCHL = 'PB00'
           AND I_KONV-KSCHL = 'PBXX'.
           I_KONV-KWERT  = ( I_KONV-KWERT * L_NUM * L_KPEIN ).
                          / ( L_DENO ).
        elseif I_KONV-KRECH = 'A'  AND  I_KONV-KSCHL = 'PB00'
           AND I_KONV-KSCHL = 'PBXX'.
           I_KONV-KWERT  = ( I_KONV-KWERT * L_NUM * L_KPEIN )
                            / ( l_deno ).
         ENDIF.
       ENDIF.
        CASE I_KONV-KSCHL.
    *-- For base price
          WHEN 'PB00'.
            L_BASE = L_BASE + I_KONV-KWERT.
          WHEN 'PBXX'.
            L_BASE = L_BASE + I_KONV-KWERT.
          WHEN 'P000'.
            L_BASE = L_BASE + I_KONV-KWERT.
          WHEN 'P001'.
            L_BASE = L_BASE + I_KONV-KWERT.
    *-- For octroi
          WHEN 'JOCM'.
            L_OCTROI = L_OCTROI + I_KONV-KWERT  .
    *-- For discount calculation
          WHEN 'ZDT%'.
            L_DISCOUNT = L_DISCOUNT + I_KONV-KWERT .
          WHEN 'ZDN%'.
            L_DISCOUNT = L_DISCOUNT + I_KONV-KWERT.
          WHEN 'ZDTV'.
            L_DISCOUNT = L_DISCOUNT + I_KONV-KWERT .
          WHEN 'ZDNV'.
            L_DISCOUNT = L_DISCOUNT + I_KONV-KWERT.
    *--- For packing forwarding .
          WHEN 'ZPNV'.
            L_PFORWARD = L_PFORWARD + I_KONV-KWERT.
          WHEN 'ZPN%'.
            L_PFORWARD = L_PFORWARD + I_KONV-KWERT.
    *--- For frieght .
          WHEN 'ZFTV'.
            L_FRT  =  L_FRT + I_KONV-KWERT.
          WHEN 'ZFT%'.
            L_FRT  =  L_FRT + I_KONV-KWERT.
          WHEN 'ZFNQ'.
            L_FRT  =  L_FRT + I_KONV-KWERT.
    **-----for others
         WHEN 'ZOTV'.
           L_OTHERS  =  L_OTHERS + I_KONV-KWERT.
         WHEN 'ZOT%'.
           L_OTHERS  =  L_OTHERS + I_KONV-KWERT.
         WHEN 'ZOTP'.
           L_OTHERS  =  L_OTHERS + I_KONV-KWERT.
         WHEN 'ZONV'.
           L_OTHERS  =  L_OTHERS + I_KONV-KWERT.
         WHEN 'ZON%'.
           L_OTHERS  =  L_OTHERS + I_KONV-KWERT.
         WHEN 'ZONP'.
           L_OTHERS  =  L_OTHERS + I_KONV-KWERT.
    *--- for insurance
          WHEN 'ZINV'.
            L_INSU  =  L_INSU + I_KONV-KWERT.
          WHEN 'ZIN%'.
            L_INSU  =  L_INSU + I_KONV-KWERT.
          WHEN OTHERS.
            CONTINUE.
        ENDCASE.
        CLEAR I_KONV.
      ENDLOOP.

Maybe you are looking for