Sap form

INVOICE WINDOW
1. Company Address - Details FS: 5
- LOGIC ADRC-ADRNR = T001-ADRNR(T001-BUKRS = L_ROW-CCFR)
- GET : NAME1, STREET, HOUSE NUM1,CITY1, POST CODE1, COUNTRY
2. Bank Details : Details FS : 6
- LOGIC
LFBK first record where LIFNR = L_ROW-CUSTTO
BNKA where BANKS = LFBK-BANKS and BANKL = LFBK-BANKL (select single)
print out the following:
BNKA-BANKA (1st line)
BNKA-STRAS (2nd line), only if not empty
BNKA-ORT01 (3rd line, only if not empty)
Account number BNKA-BANKN
DOCU – WINDOW
This is the window on the top right side
1.Document no (hard coded)
2.Then display the document number for the first document for the current row. Maybe you should check prior to printing if the current row was posted error free   
   and invoke printing only if this is the case. Then get the first(!!!) document number from the error/message log for this row. ZGF_ICO_RECHR_L-DOCFR
3. Document date (hard coded) it is P_BLDAT on the selection screen, already correct in the form
4. VAT No (hard coded)
5. Then display the EU VAT reg.no of that company. This is in table KNA1, where KUNNR = L_ROW-CUSTFR. The field is KNA1-STCEG, if it is empty, try to populate
     KNA1-STCD1.
6. Order number(Hard coded)
7. Just concatenate L_ROW-REF + the last number for that reference from the log table ZGF_ICO_RECHR_L (notice this table has not yet been created!!! and also
    the part is missing where we populate that table when posting both documents for a particular row) ZGF_ICO_RECHR_L-REF+NUMBER

Hi
There are different ways of doing it. It all depends on how flexible you want to be about a solution.
1. You can create a standard text (transaction SO10) and in your sapscript insert the INCLUDE statement with the name of your text.
2. Or if your document supports texts at the header level then you can create a new text type and have a user to type it in. In your sapscript you will need to insert the INCLUDE statement as well. You can even set a default text for this new text type to get it from the standard text (created in 1.)
In both cases you will need to create a new Element in MAIN window of your sapscript:
/E SPECIAL_INSTRUCTIONS
INCLUDE &MY_NAME& OBJECT ... etc.
and call this element from within the print program after the items have been processed. There must be a kind of loop in the program to go through all the items. Insert your WRITE_FORM FM after that loop.
Thanks,
Wojtek

Similar Messages

  • How to get an user field in a sap form

    SBO2004
    I'm trying to get an user field in a sap form(651).
    My code is:
    Dim FrmT As SAPbouiCOM.Form
    Dim Itm As SAPbouiCOM.Item
    FrmT = GestorSAP.SBO_Application.Forms.GetForm("651", 1)
    If (Not FrmT Is Nothing) Then       
       Itm = FrmT.Items.Item("U_Project")
    End If
    Frmt is not nothing, but itm is ever nothing and gives me an exception(item not valid). If i go to sap and look at this form, with debugging info activated, i see:
    Form=651 Itm=U_Project Variable=1 OCLG,U_Project
    What am i ding wrong?

    Hi Miguel Angel.
    Try with form "-651".
    UDF form is the negative sap form.
    HTH
    Juli
    P.S:I'm not sure your code works, I never work with GetForm method, but yes with UDF form

  • Printing in Hindi on SAP Form

    Hi Guru's,
    I have requirement to print some hindi text in SAP Form , please advise how to do that. I have gone through several posts which were posted for the same requirement but somehow don't see any concrete solution on it.
    As hindi language is not available in SAP, Is it possible to print in Hindi on SAP Forms by uploading hindi fornt !! I need to print both variable and constant values.
    Please advise.
    Regards,
    Anoop

    check this sap note 895560

  • How to draw line on SAP form

    Hi everyone,
    Who have a good way to draw lines on SAP form?
    I created a Wizard form, and use Rectangle (Height=0) as the two lines between title and bottom button, but I met a problem, when show another form which cover the line, after close this form, some part of lines disappear, I have tried using SAP form refresh, it still can not restore showing line completely, who have good way to workaround the problem or give me another way to draw line.
    Thanks in advance!
    Kathy

    The only way I found to get a form looking really close to a standard B1 Wizard form is to use bitmaps.  I use 3 - one each for the top, bottom and left hand side.  The bitmaps include the line drawing and appropriate pictures/background colours.  I normally define these in the XML used to create the form as in the following example:-
    <item uid="PTOP" type="117" left="0" width="566" top="0" height="80" visible="1" enabled="1" from_pane="0" to_pane="0">
            <AutoManagedAttribute/>
            <specific picture="AZU_SPC_WIZ_TOP2.bmp">
                    <databind databound="0" table="" alias=""/>
            </specific>
    </item>
    <item uid="PBOT" type="117" left="0" width="566" top="336" height="40" visible="1" enabled="1" from_pane="0" to_pane="0">
            <AutoManagedAttribute/>
            <specific picture="AZU_SPC_WIZ_BOT.bmp">
                    <databind databound="0" table="" alias=""/>
            </specific>
    </item>
    <item uid="PLEFT" type="117" left="0" width="100" top="0" height="336" visible="1" enabled="1" from_pane="1" to_pane="1">
            <AutoManagedAttribute/>
            <specific picture="AZU_SPC_WIZ9.bmp">
                    <databind databound="0" table="" alias=""/>
            </specific>
    </item>
    John.

  • Problem with designing a table in sap form

    Hello Gurus, i am trying to modify a sap form, i have to add to the table in the main window a new column. In the second column i have a description text Char lenght 45, the problem is that the rest of the columns after the second column get disorded, i tryed to use CONDENSE on the text variable but it won`t help. I need to line up the rest of the columns. Please help !

    Hi Ioan,
    You will see ",," between each column. These represent a tab and are defined in the paragraph definition. Probably you new column is too wide to fit into two tabs. So go to the definition of the paragraph and adjust the tab settings.
    Regards,
    John.

  • Crystal Report Viewer ActivX Control into an SAP Form

    Hi
    I need to show an Crystal Report Viewer in a SAP form This code show an blanck from.
    I know that only ATL activX are supported by SB1, but I don’t have more information about the Crystal ActivX.
    Dim oFormTST As SAPbouiCOM.Form
    Dim oCreatP As SAPbouiCOM.FormCreationParams
    oCreatP = oApp.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)
    oCreatP.UniqueID = "TEST"
    oCreatP.BorderStyle = SAPbouiCOM.BoFormBorderStyle.fbs_Sizable
    oCreatP.FormType = "TESTFtype"
    oFormTST = oApp.Forms.AddEx(oCreatP)
    Dim oItemX As SAPbouiCOM.Item
    Dim oActivX As SAPbouiCOM.ActiveX
    oFormTST.Height = 400
    oFormTST.Width = 400
    oItemX = oFormTST.Items.Add("TEST01", SAPbouiCOM.BoFormItemTypes.it_ACTIVE_X)
    oActivX = oItemX.Specific
    oActivX.ClassID = "CrystalReports11.CrystalReportViewer.1"
    Dim oRep As CrystalDecisions.Windows.Forms.CrystalReportViewer
    oRep = oActivX.Object
    oRep.ReportSource = "E:\DevLoc\App\bin\FICHETECH.rpt"
    oItemX.Height = oFormTST.Height
    oItemX.Width = oFormTST.Width
    oFormTST.Visible = True
    Some one as an idea ?
    Thks

    Vishal,
    I would like to let you know of an SBO addon that we have created called CrystalWave. This addon integrates Crystal reports with B1. This might save you a some time trying to recreate the wheel. Please take a look at the following link:
    http://www.twbs.com/CrystalWave.html
    YOu can download a fully functional copy at http://www.twbs.com/selectcwversion.html
    This will work only on the SBODEMO_US company.
    Let me know if you have any questions.
    Gopal Viswanathan

  • Crystal Report Viewer Control on SAP Form?

    We are using Crystal Report XI to create custom SAP reports.  We have integrated this into our Add-On by adding the Report Viewer Control to a Windows form and setting it's report source at runtime.  This works ok but is a bit cludgy looking and causes some focus and redraw problems with SAP.  I have tried for weeks to figure out how to get the ActiveX control onto an SAP form but with no luck.
    Here is my code sample:
    SAPbouiCOM.Item oItemX;
    SAPbouiCOM.ActiveX oActX;
    CrystalDecisions.Windows.Forms.CrystalReportViewer oCRX;
    oItemX = this.sboForm.Items.Add("U_CRCtl", SAPbouiCOM.BoFormItemTypes.it_ACTIVE_X);
    oItemX.Left = 0;
    oItemX.Top = 0;
    oItemX.Height = this.sboForm.Height;
    oItemX.Width = this.sboForm.Width;
    oActX = (SAPbouiCOM.ActiveX) oItemX.Specific;
    oActX.ClassID = "{5E093535-5A5D-4E72-ACCD-F10B6D065BC9}";
    oCRX = (CrystalDecisions.Windows.Forms.CrystalReportViewer) oActX.Object;
    oCRX.ReportSource = @"c:\Test\Test.rpt";
    I am not sure why this will not work.  I always get either 'Specified cast is not valid' or 'Invalid Class ID'.  If anyone has done this successfully or has any suggestions that would be great!  Thanks for your help!
    David

    Hi Ibai,
       Thank you for your interest in CrystalWave. I tried sending this info to the email address you gave but got an undeliverable message.
    The links are as follows:
    (please use Internet Explorer while accessing the download link)
    1. CrystalWave info: http://www.twbs.com/CrystalWave.html
    2. CrystalWave download: http://www.twbs.com/cwrfiv2004.asp (You need to fill in your info and the download will start.)
    Please do let me know if you are not able to access these links and I can setup a temporary link for you to download the program.
    Thanks,
    Gopal Viswanathan

  • How to call existing sap form

    Hi All,
    I have created one addon for MRP in this addon when client click on menu i have to display "Order recomandation"  form which will dispaly in existing MRP functions.
    How to display existing sap form in our menuclick. please help me as soon as possible.
    Regards,
    sri

    Hi Sri,
    This related to SDK so post this thread on SAP Business One SDK. You will get solution asap.
    Thanks
    Sachin

  • How to make changes in Existing SAP form

    How I can make changes in existing SAP form . I want to make changes in delivery form <b>matrix row enable or disable</b>

    Hi Sagar,
       If you want to disable a row, you can close that row using DIAPI.
    HTH
    B.Ravi Shankar
    null

  • How to display existing sap form in our menuclick

    Hi All,
    I have created one addon for MRP in this addon when client click on menu i have to display "Order recomandation" form which will dispaly in existing MRP functions.
    How to display existing sap form in our menuclick. please help me as soon as possible.
    Regards,
    sri

    Thanks Teun,
    Thanks for giving reply.
    i am not getting any ActivateMenuItem method in menuclick event
    But here i am addding one menu item from my addon when i click on my menu 20.2.orderrecomnds i have to populate same screen which is coming in mrp order recomonds which form id is 65215
    if ((pVal.MenuUID == "Submenuordrecom") & (pVal.BeforeAction == false))
    // code
    in above menu click event i have to populate order recomonds screen so how to do that.
    Regards,
    sri
    Edited by: dns_sap on Jul 28, 2010 12:09 PM

  • User Specific Items Visibility in all SAP Forms

    Hi Experts,
    Greetings Of The Day!!!!
    I have a requirement where i need to show the item master list according to the user on all sap forms.
    For example GRPO :Some specific groups of items should be shown in CFL of item according to the user currently logged in in the system.
    How can we manage this in SAP?
    Thanks
    Amit

    hi Amit,
    your requirement requires SDK since SBO standard authorization is in Form Level.
    regards,
    Fidel

  • Copying Standard SAP form

    hi all,
    curently I'm copying standard SAP form into Z* form then try to modify.
    Hopefully I face the problem can not add new window in new form.
    can any body have me how to solve it?
    regard,
    Hengky

    Hi
    U can change them only in the master version.
    If you have copied the sapscript from a standard one, probably you've copied all versions (for the main languages), but only one version is the master one.
    The master version is the language used to create the sapscript, so I suppose the German (DE) as your sapscript is copy of standard one.
    So if you need to change objects like window, paragraph,.... u can do it in the master version only.
    U can update the text elements only in the other versions.
    Anyway if you need you can assign another version as master one: trx SE71, insert your sapscript press change and go to Utilities->Convert the original language
    Max

  • SAP Forms : table cut short when too many entries

    Hi all,
    I have an issue with tables in sap forms. Normally the sap form printout is 1 page, but when many entries exist in a table, the table-list is cut short when the page ends. ie. it does not continue on a 2nd page.
    What is missing here?
    thanks for your help.
    faB

    Hi Fab,
    what problem you are facing? you will have Page up, Page Down buttons in the toolbar.
    or press key borad page up,page down buttons to navigate to next page.
    Regards
    vijay

  • Opening Sap Form(cfl) on top of windows form added in an adddon

    Hi
    On a click of sapForm button,I have opened a windows form containing a buton on it .
    Now on a click of this button I have opened the Cfl created on Sap form.but its opening at the back of the Windows  form .I need to minimize my Windows form to view the Cfl opened .I want this cfl to be open on top of windows form on whose button click i have opened it.
    your suggestions are urgently required.
    Regards
    Mandeep

    Hi Mandeep,
    This thread may be a useful reference for you: Why the open file dialog form goes to SAP background.
    Regards
    Aravind

  • Arab language in SAP form

    Hi Friends,
    I have issue regarding arabic font in sap form. How does it works in SAP.
    Awaiting for your reply
    regards
    Pk

    Hi,
    For an example, please select one absence type>go to utilities>Select choose language-->You will find Arabic in the list.
    Regards.

  • SAP FORMS AND TIFF BASELINE 6.0

    I wander whether TIFF BASELINE 6.0 is supported in sap forms. Is there something else we should take care of ...
    Thank you in advance for as much info as possible.
    I will award your usefull answers

    In sapscript forms, yes.  In fact, then uploading images into standard text,  they must be baseline 6.0 tiff.
    Regards,
    Rich Heilman

Maybe you are looking for

  • Alpha Channel Help

    Hi I was wondering how did they get this alpha channel, is there a tutorial any one knows or just what technich its called cause i cant find a thing how they did it http://hotfile.com/dl/57865326/b1bed5b/ShockBall.dds.html I cant upload the image her

  • Activate External Display as mirror using Fn keys only

    My Macbook display is kaput. So i connected the external TV as display, but i need to activate the mirror display function. My HDD also kaput, so when booting from the install disc, it doesnt seem to recognose F2 or F7 or Shift F2 to activate the ext

  • [solved] QT with QT_NO_STL?

    Hello ARCH people. I lately experienced a problem converting from std::string to QString compiling QT Applications. The following error i get: error: conversion from `std::string' to non-scalar type `QString' requested By searching google and reading

  • OC4J11 deployment problem - TLD Caching issue

    Hello, I'm having problem deploying a JSF 1.2 web app. This web app uses third-party tags which are packaged under "WEB-INF/lib". When deploy this web app (as an EAR file), I'm getting these errors -- which seemed to relate to TLD CACHING: 2007-12-17

  • Display of data based on priority

    Hi All, I have a requirement of displaying data based on the priority of numbers. Example: There are 3 Part Numbers- 342, 310, 317. I want to store this data in Lookup table(Multi). Is it possible to display the data based on the number like 310, 317