How to write SAP Script for AP/AR?

Hi,
I would like to know how to prepare a SAP Script for AP/AR. Can anybody help.
Thanks
ST

Hi,
I would like to know how to prepare a SAP Script for AP/AR. Can anybody help.
Thanks
ST

Similar Messages

  • How to write Java script for refering the 1st page text field from 2nd page?

    Hello I am developing an VISITOR info interactive form with webdynpro ABAP, its with 2 pages. Their heirarchy is,
    VISITOR_form
        |
        |
        |------Page_1
        |            |
        |            |
        |            |------Text_Field_A_1
        |            |
        |            |------Text_Field_A_2
        |
        |------Page_2
                     |
                     |
                     |------Text_Field_B_1
                     |
                     |------Text_Field_B_2
    Now, i have selected the 'Text_Field_B_1' of page_2 and writing the Java script, my requirement is; If Page_1's 'Text_Field_A_2' has a value of "Value_ABCD", THEN the 'Text_Field_B_1' of page_2 should be 'readOnly'. Pls let me know Wht is the Java script for this requirement?

    if (xfa.event.newText=="ABCD")
    VISITOR_form.Page_2.Text_FieldB_1.access ="readOnly";
    place script on change event of Text_FieldA_2

  • How to write Test Script for Rossettanet PIP message to test in RSTK tool.

    Hi All,
    I am new to RSTK i came to know that we need to prepare a test script and place in a Tomcat Server folder, to test any PIP message. Please let me know how we can prepare this Test Script.
    Thanks alot in advance.
    Srinivas.
    Edited by: sri_rambo on Oct 27, 2009 8:08 AM
    Edited by: sri_rambo on Oct 27, 2009 11:34 AM

    Hi,
       Did you check this blog?
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417300)ID1594031950DB00395255272980057387End?blog=/pub/wlg/3826
    and this:
    /people/shabarish.vijayakumar/blog/2008/04/28/the-rosettanet-stk-and-how-to-use-it-to-your-advantage
    Regards,
    ravi

  • How to write a script for adding a percentage?

    I have a simple form where I need a cell to automattically add a percentage to a different cell.
    For example in Excel my expression is: =SUM(E9*0.014)  [90*1.4%= 1.26] where as Cell E9 will be the amount I need the percentage to added to. 
    Header 1
    Header 2
    Number
    Surcharge
    90
    =sum(90*.014)
    Thanks,

    Moving this discussion to the Javascript since USA Fire's other inquiry was located in this forum.

  • How to attach print program and sap script for F150 transaction

    How to attach print program and Z sap script for F150 transaction

    Hi,
    you can find the customization for dunning in transaction SPRO under this path: Financial Accounting->Accounts Receivable and Accaounts Payable->Business Transactions->Dunning.
    Kostas

  • How to create a sap script for sales order header items?

    Hi friends i am totally new to scripts i have got a task where i have to create a sap script for sales order header items details, the clue that i have got is to create using MEDRUCK but i have got no idea please can any body help me with this task with any sample sap script?
    Points will be rwwared with out fail Thks in advance.

    Hi,
    The Standard Form NAme is RVORDER01
    Regards
    Sandipan

  • How To send SAP SCRIPT AS an email.

    Hi,
    Any one knows how to send sap script output to users in the form of an email.
    Is there any other way to send it apart from sending the script output to spool and converting the spool to PDF and send that PDF to user?
    It would it helpful for me if u can let me know any peace of code as an example for the same.
    Message was edited by: Narasimha

    Hi,
    This may be too late but here is a really easy way
    Here is a snippet of code that will help you out.
    You can use the OPEN_FORM of the SAPscript to have a device type of MAIL instead of PRINTER
          Form  OPEN_FORM
          Open SAPscript form to send to user
    FORM OPEN_FORM .
    *--- Set recipient
      GW_COMM_VALUES-ADSMTP-SMTP_ADDR = '[email protected]'.
    *--- Set NAST details as these will not currently be set....
      CLEAR GW_SNAST.
      GW_SNAST-ANZAL = 1.
      GW_TITLE = 'Mail Header Title'.
      MOVE GW_TITLE TO GW_SNAST-TDCOVTITLE.
    *--- Set sender and recipient details
      CALL FUNCTION 'CONVERT_COMM_TYPE_DATA'
        EXPORTING
          PI_COMM_TYPE              = 'INT'
          PI_COMM_VALUES            = GW_COMM_VALUES
          PI_REPID                  = SY-REPID
          PI_SNAST                  = GW_SNAST
          PI_MAIL_SENDER            = SY-UNAME
        IMPORTING
          PE_ITCPO                  = GW_ITCPO
          PE_MAIL_RECIPIENT         = GW_RECIPIENT
          PE_MAIL_SENDER            = GW_SENDER
        EXCEPTIONS
          COMM_TYPE_NOT_SUPPORTED   = 1
          RECIPIENT_CREATION_FAILED = 2
          SENDER_CREATION_FAILED    = 3
          OTHERS                    = 4.
    *--- Open SAPscript in MAIL mode for e-mailing
      CALL FUNCTION 'OPEN_FORM'
        EXPORTING
          DEVICE                      = 'MAIL'
          DIALOG                      = 'X'
          FORM                        = SapScript Form Name
          LANGUAGE                    = SY-LANGU
          OPTIONS                     = GW_ITCPO
          MAIL_SENDER                 = GW_SENDER
          MAIL_RECIPIENT              = GW_RECIPIENT
        EXCEPTIONS
          CANCELED                    = 1
          DEVICE                      = 2
          FORM                        = 3
          OPTIONS                     = 4
          UNCLOSED                    = 5
          MAIL_OPTIONS                = 6
          ARCHIVE_ERROR               = 7
          INVALID_FAX_NUMBER          = 8
          MORE_PARAMS_NEEDED_IN_BATCH = 9
          SPOOL_ERROR                 = 10
          CODEPAGE                    = 11
          OTHERS                      = 12.
    When you have finished your SAPscript and call function CLOSE_FORM make sure you do a COMMI WORK after the call of this function.
    You should then see the mail created in SOST.
    Kind regards
    Colin

  • I am new in indesign scripting, please tell me how to write a script to get  content of a element in xml and then sort all the content

    I am new in indesign scripting, please tell me how to write a script to get  content of a element in xml and then sort all the content

    Hi,
    May the below code is useful for you, but I dont know how to sort.
    Edit the tag as per your job request.
    alert(app.activeDocument.xmlElements[0].contents)
    //Second alert
    var xe = app.activeDocument.xmlElements[0].evaluateXPathExpression("//marginalnote");
    alert(xe.length)
    for(i=0; i<xe.length; i++)
        alert(xe[i].texts[0].contents)
    Regards
    Siraj

  • SAP Script for Delivery

    Dear ABAPer's ,
    I am working on a SAP Script for Delivery.The requirement is I need a print out for each line item in a delivery in a seperate page.
    For example if the delivery has 3 line items.I should print each line items details in 3 seperate pages.
    I have modified the routine RVADDN01 according to my requirements.
    How to do this...

    Hi Sapient,
       In order to create a page for each line item what you have to do is in the script part where you have written the values.
    for eg: if the line item details(VALUE) are in an internal table "<b>I_DETAILS</b>"
    <b>Script:</b>
    /E DET
    P1 &I_DETAILS-VALUE&
    /: NEW-PAGE
    <b>Driver program:</b>
    Loop at i_details.
    CALL FUNCTION 'WRITE_FORM'
       ELEMENT                        = 'DET'
       TYPE                           = 'BODY'
       WINDOW                         = 'MAIN'.
    Endloop.
    Try this it would work.
    Reward if helpful.
    Regards,
    Tushar

  • How to write a PCR for this ?

    Hi SAP-HR Experts .
    Dear friends , My Company Requires a specific requiremnt that at the date of any Employee's
    B'day his one day salary should get doubled and he is entitled to get one leave on his B'day .
    I do not know how to write a PCR for this ?
    May some Body tell me how to meet this requirement Please .
    tell me please step by step how to go through ...
    It will be great help for me .
    Best regards : rajneeesh

    I think you can make it with something like this:
    Write a PCR in schema, you can call the rule with "actio";
    000860 ACTIO 9BIR AR               Birthday
    Rule 9BIR
    9BIR Rule for Birthday
            NUM=FG C   Set                   " F (fixed indicator for deadline calculation); G (Birth date from infotype 0002);C (complete months)
            NUM/12     División              " Number of completed months divided by  12
            NUMV0O2L   Off.Lng en arg.var.   " the last two places of the number are entered in the variable argument.
                                " if the rest is not 00, there is nothing to do
              00                             " if the rest is 00
                ZERO= N    AmtNumRteZeit = 0 "
                AMT=  1002 Set               " wagetype of  salary
                AMT/TKDIVI División          " divides the amount by  Partial Period Parameter Whole Month
                ADDWTI1002 Input table       " accumulates into 1002
    Example: an employee with birthday 01.01.1977 in IT0002
    Payrroll in january 08
    wagetype 1002 before rule 9BIR:
    3 1002 Salario Bas01                           30,33  30,00              909,90
    Rule 9BIR
    NUM=FG C   Set; NUM= 372
    NUM/12        ; 372/12= 31 rest=00
    AMT=1002      ; AMT= 909,90
    AMT/TKDIVI    ; 909,90/31= 29,35
    ADDWTI1002    ; 909,90 + 29,35= 939,25
    wagetype 1002 before rule 9BIR:
    3 1002 Salario Bas01                           30,33  30,00              939,25
    Hope this helps. Manuel

  • How to write the logic for extending Idocs...

    Hi,
          Can anybody pls explain how to write the logic for extending IDOCs with an example...
          Good suggestions can be appreciated..
    Regards,
    Ram

    Hi Ram,
    Generally the IDoc user exit is called at the following places:
      1) When the control record is read.
      2) After each and every segment in the data record
      3) At the end of the data segment processing.
    The IDoc user exit interface generally imports IDOC_DATA (data record internal table) table. Now the data records in the internal table should appear in the same order as maintained while defining IDoc structure (WE30 transaction). For SAP standard segment SAP code will take care of this. For extended segment you will have to take care of this aspect by appending the Z-segment in the IDOC_DATA table.
    You can do this by:
             looping at IDOC_DATA table:
                 - Do a case-endcase fo IDOC_DATA-SEGNAM (This stores the segment 
                   structure as per the hierarchy).
                 - Within the case for "Z-segment" you can write the logic for appending
                   the Z-segment to IDOC_DATA-SDATA.
    Hope this gives some clue.
    Regards,
    Gajendra.

  • Can you point me to FrameScript samples that do some or all of the following?  Or maybe even write the script for me for $$$? :-)

    Hi,
    I'm brand new to writing FrameScript.  I'm looking for example scripts that I can piece together or perhaps you can give me a quote for your cost to write the script for me.  Here is a description of basically what needs doing.  We have .book files than contain say a cover.fm, multiple  chapter.fms, and possibly multiple appendix.fms.  (They actually contain more  types, but I can expand the script for that.)  I don't think here is a  consistent way to automatically determine which .fms are of which type, so I was  thinking of popping up a dialog box that showed the files in the book and asked  the user to identify which files were of which type.  This asking could be done  all at once, or it could iteratively ask for the first type then run all the  processing then ask for the second type, etc, etc.
    The processing of each file goes like  this:
    1) Delete the paragraph and character catalog  contents
    2) Import all formats, including the new paragraph and  character catalogs from correct template file (chapter.fm, appendix.fm,  etc)
    3) Remap the old paragraph and character tags to the  new ones, preferably based on an internal predefined, hard-coded table, but  possibly using the "use a remapping table that is in another .fm file" method.   It's just that the latter method requires the user to open two more .fms in  addition to the several other template files they'll already (correct?) have to  have open.
    4) Report to the user all tags that are in their file  that are not in the new catalogs
    Can you point me to pieces?  Write the whole thing?  Recommend someone who can?
    Thanks,
    Dave

    Dave, if you haven't yet check it out, do visit the Framescript users group, here:
        http://groups.yahoo.com/group/framescript-users/
    There are several folks who do contract FS work who post their contact info as part of that group (I believe there's a webring also). Also,  Rick Quatro has a good e-book "Crash Course" about learning FrameScript (although the book refers to an earlier version, almost all of the concepts are still applicable to the current versions of FS and FM) , check it out at
    http://www.frameexpert.com
    Sheila

  • How to write conversion routine for key figure?

    Our customer has this requirment:
    we need to know the last time of some TV program in BEx report, If a TV program last 500 seconds, we need show the key figure like this:  00:08:20, If a TV program last 100000 seconds, we need show the key figure like 27:46:40 (27 hours and 46 minitues and 27 seconds), If we define a key figure as time,  BW system will report a error that say it is not acceptable time.  If we want to define a integer, but we need display it like hhmmss format.  We know we can write conversion routine for char.  but I don't how to write conversion routine for key figure.   Please give me any hint if any other solutions?
    Edited by: SY DONG on Dec 2, 2010 3:36 AM

    If you want to do in Transformation Layer :
    You can use routine ...break up the seconds into minute hour and seconds
    you will have to handle few cases in this:
    let say your variable lv_seconds holds the number of seconds you want to convert to hour min and seconds
    DATA: lv_seconds type i,
               lv_hrs  type  i,
              lv_sec type i,
              lv_min type i.
    lv_hrs = lv_seconds / 3600
    if lv_hrs >= 1.
    lv_min = (lv_hrs - trunc(lv_hrs))*60
    here again handle seconds if min >60.
    else.
    lv_hrs = '00'.
    lv_min = lv_hrs*60
    It is just hint ..how you can manipulate the seconds to get it...you will have to think about the complete algorithm
    Regards,
    RK

  • How to write a code for  open new txt file in swing

    hai all,
    now i do one project in java.that project's GUI is Swing. But i don't known swing (basic).So how to write a code for open new txt file and "Open window " in menu item on swing.that means when i click the "New" on menu that time open a new txt file. open also like that type.
    plz give me that code ! very urgent
    Advance Thanks !
    RSK

    Swing Tutorial:
    http://java.sun.com/docs/books/tutorial/uiswing/index.html
    Since you don't know the basic of swing read the tutorial, it is for your own good because it is useless if we provide you with a code you don't even understand and how it works.
    If you want a menu read the tutorial about using menus and for opening a file read using JFileChooser.
    note: don't use the word urgent because it implies that your problem is more important than others.

  • How to write Select statement for this codition

    I need to check whether SGTXT contains BELNR value.
    SGTXT is a text field and It should be matched with BELNR
    How to write select statement for this.
    Select AUGBL AUGDT into t_BSAD
    from BSAD
    where SGTXT should have the given BELNR Value.
    Plz note : Here I cannot give as SGTXT = BELNR as coz BELNR have only 10 digits.

    Hi,
    data temp(12).
    concatenate '%' belnr '%' into temp.
    Select AUGBL AUGDT into t_BSAD
    from BSAD
    where SGTXT like temp.
    If belnr is having multiple values,just create a internal table as follows.
    types : begin of ty,
            belnr....
            temp(12),
            end of ty.
    data itab_ type standard table of ty.
    data wa type ty.
    loop at itab into wa.
    concatenate '%' wa-belnr '%' into wa-temp.
    modify itab from wa index sy-tabix transporting temp.
    endloop.
    Change your select statement accordingly.
    Kindly reward poits if it helps.

Maybe you are looking for

  • Unknown error has occurred when login to app store

    Ok I'm getting mad!!!   I have spoke to 3 apple techs and they keep telling me it's something on their end...  If so wouldn't you think they would fix it so I can buy apps?  My itunes works fine and shows my credit.. So  Please someone who knows this

  • Does the server listen in the same port or on a random one....?

    Hi all, As I went through the Java Tutorial in Sun's website I found that though the server is assigned a port to listen, it does the actual communication with the client in another port and keeps the assigned port listening for other clients. Can't

  • Queries run faster under Administrator account than from "regular" users

    We have OBIEE 10g used as a reporting tool against E-Business R11i. When OBI reports are run from the Administrator account, they complete in about 15 secs. When the same report , with same parameters is run from a non-administrator account, completi

  • Issue with image size on overwrite edits.

    This is likely a simple question but for some reason, likely sleep deprivation, I can't figure it out. I have a video sequence of a lecture that I am trying to overlay with a Keynote presentation (Quicktime H.264). I have the lecture video (DV captur

  • How do I make adobe bridge work with canon rebel t2i camera?

    I have photo shop cs3 and never had a problem with Bridge before. Now I purchased a new canon rebel t2i and it will not recognize adobe bridge.  Anyone know how I can make this work?