Staus check?

Hi expert all
please help me how to write this code just like invoice   
when invoice is payment status closed other wise open.....
please  help me? explain clearly

thanks   for reply both of you
i used this code   but   what happend when i run this code  that sap business one  application  screen
  forcefully shut down. no error generated
please help  me out of this problem?
''>>>>>>>>>>>>>>>>>>>>>>>>>> status
        oItem = oForm.Items.Add("Status", SAPbouiCOM.BoFormItemTypes.it_EDIT)
        oItem.Left = 420
        oItem.Width = 123
        oItem.Top = 35
        ' oItem.AffectsFormMode = True
        'oItem.LinkTo = "desiTxt"
        oItem.Enabled = False
        oEdittext = oItem.Specific
        oEdittext.DataBind.SetBound(True, "@VULC", "U_Status")
Private Function GetStatus(ByRef oCompany As SAPbobsCOM.Company, ByRef oApplication As SAPbouiCOM.Application, ByRef oForm As SAPbouiCOM.Form) As Boolean
        GetStatus = False
        Try
            With oForm.DataSources.DBDataSources.Item("@VULC")
                If .GetValue("Canceled", .Offset) = "N" Then
                    If .GetValue("Status", .Offset) = "O" Then
                        oForm.Items.Item("Status").Specific.Value = "Open"
                    Else
                        oForm.Items.Item("Status").Specific.Value = "Closed"
                    End If
                Else
                    oForm.Items.Item("Status").Specific.Value = "Canceled"
                End If
            End With
            GetStatus = True
        Catch ex As Exception
            oApplication.MessageBox("GetStatus(): " & oCompany.GetLastErrorCode.ToString & ex.ToString)
        End Try
    End Function
'''''''''''''''''   then
Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
        Dim oForm As SAPbouiCOM.Form
        oForm = SBO_Application.Forms.Item(FormUID)
If pVal.BeforeAction = False Then
            Select Case pVal.EventType
                Case SAPbouiCOM.BoEventTypes.et_FORM_LOAD
                    GetStatus(oCompany, SBO_Application, oForm)
            End Select
        End If
end sub
thanks & regards
Avirupe

Similar Messages

  • How to make Settl. rule mandatory before release ?

    Hi,
    I have project with settlement to AUC and to the superior wbs elements. I want to have the settlement rule to be made mandatory (before Release) for all those WBS elements, where it will be settled to superior WBS elements. How to make this mandatory ? Is it possible through validations or is there any BAdI available for this ? I had checked for user exits, i could not find any suitable one.
    thanks in advance.
    Vinodh

    Hi
    1.For making settlement rule manditory, check with function module "CJPN_SETTLEMENT_RULES" and put into validation in OPSI t.code..
    2. when settlement rule is created system status will be set to SETC. So while saving the project , you can check if the status is SETC or not and the throw the required error.
    You can use BAdi = Workorder_update interface AT_SAVE.
    For staus check you can use BAPI_STATUS_CHECK and pass Objnr of the WBS and check for SETC ( Sys Status = I0028).
    try this options
    Thanks
    S.Murali

  • Change the input parameter in Check Status screen

    Hi,
    I have a requirment to change the input parameter option in the check status screen. Currently when we search the SC using the date and staus from the extended search it picks the SC created date and displays the SC, my requirement is to make the date as the approved date insted of SC created date with the status as aprpoved.
    Please suggest if this is possible with the help of any Badi.
    Regards
    GGL

    I managed to find the solution myself. If anyone is interested, just follow those steps here:
    http://apple.stackexchange.com/questions/44913/make-a-custom-keyboard-layout-the -system-default-even-for-the-login-screen
    (terminal skills required tho)

  • APP - Check Printing

    Hi ,
    Through APP it is generating vendor payment document number &
    & Spool no is not generating and session staus is showing canclled
    what could be the Problem
    Regards
    Sure

    HI,
    Check FBZP for Payment method in country and company code Whether u have enter Payment advice form and payment print form.
    Regards,
    Sreekanth

  • Total time of just the checked songs

    Is there any way to see the total time of just those songs I've checked in a playlist?

    In the laylist click on the header for the ticked column. It will group the checked together.
    Select all the checked Songs and if the staus bar is showing you will see the time for those songs st the bottom in the grey bar.
    If you do not have the grey bar View > Show Status Bar

  • PTF check status is not updated

    Dear Experts,
    Recenetly, as per the suggestion of SAP we have updated the PTF of the OS.
    After the updation when I check the PTF Check in DBACOCKPIT it still show the staus in red color where as if I check the same PTF's at OS level it shows installed and shows the different patch level.
    Can someone please help me how to get the same status in SAP also.....i.e., the PTF which are installed recently should be reflected with status green color in SAP.
    Highly appreciate the help.....
    Thanks and Regards,
    Sharath Babu M

    Hi,
    check  Note 144149 - AS/400: Comparing PTF level with IBM Information APAR
    regards,
    kaushal

  • IDOC in 03 staus but not coming to PI system..

    Hi Experts,
    I am working on IDOC to IDOC scenario.All of the IDOCs are in 03 status in R/3 system but some of the IDOCs are not coming to PI system.I checked SM58 also but its fine.
    Should it be in 12 staus?
    Is it possible that IDOC in status 03 can reach to the target system?
    Please reply it asap.Its urgent.
    Regards,
    Vikram

    Hi Vikram,
    First of all, bd75 is only for status conversion. This means, that only IDoc statuses are changed, based on the status of the RFC call. IDocs are not despatched again by this transaction.
    Secondly, you might want to check the EDI Port that is assigned in the partner profile, if it is pointing to the correct target system.
    Finally, if target system is OK and you don't find anything in sm58 in sender system, then you should go to smq2 in PI and you should find your IDocs there, waiting in a blocked queue.
    Hope this helps,
    Greg

  • How to check the status of an IDoc in the Target system

    Hi Experts,
    we are using a self-made program to send Material and BOMs from Client A to Client B into the same ERP System.
    How can I check the status of an IDoc in the Target Client B (like BD87 - ALE Monitor) ?
    If you have some examples or Function, please give me the information.
    Rewards if helpful.
    Regards,
    David

    Hi David
    As mentioned in the earlier reply you can check your status with tcodes:-BD87,WE02,WE05.What i guess from your querry is the staus of your idoc whether posted or not in target client B.Check in the target client for the message type which you are using (since its an program that means you must be using an customised idoc type or standard) .You might have maintained Basic type tcode:-WE30.Give in your messagetype,Basictype,Created at and executed using tcode :- BD87.The prerequisites are you need to create an Partner Profile(WE20) .For this you need to create to provide in your message type and Process code(we41,we42,we57).If you have to create an process code for customised one(se37) .You need to actuivate the idoc inbound processing .If you are using a file in your file make it sure the port is being maintained for the same to chek for unicode format in tcode :-WE21 (check or uncheck).
                    For standard BOM i recon you are using message type :-BOMMAT  and Processing code as:-BOMM.Its always advisible that instead of using an whole abap program you need to have an ETL tool that would take care of the extraction of data provided your client do have existing Legacy system in its place since it would be much faster and easier.
    Regards
    Somnath

  • Suggestions about the best tool for quality check for an ADF application

    Hi All,
    I need a few suggestions about the best tool for quality check in our ADF applicaiton.
    ours is a small size WebCenter Portal application which neither uses any task flows nor consumes any portlets.
    It has many jspx pages that use ADF components like table etc, consume web services using web service clients, and has some java classes.
    We have come across below option to implement the code quality tools.
    1. Jdeveloper inbuilt Staus option in View tab
    2. PMD extension for Jdeveloper
    3. Red Samurai
    Few more suggestions or best practices would be really helpful.
    Thanks,
    Usha

    Some general ADF / Webcenter coding standards -
    http://umeshagarwal24.blogspot.com/2012/06/adf-coding-standards-check-points.html
    You can use JAudit as well as mentioned in the blog.

  • SC should disappear from check status transaction

    Hello Colleagues,
    Can you please answer me the below query.
    ISSUE:
    Employee  creates SC.
    SC goen into sourcing cockpit.
    Purchaser completes sourcing and creates a contract.
    SO I feel for the employee his job is complete.But still i can see the SC in the check status for the employee.
    This does not make any sence and is very confusing for the employee.
    It makes sence for the purchaser to see the SC in check staus but not employee.
    How can i restrict the display of SC'c with the contract created out of it..not visible in the check status for the employee.
    Looking forward for your valuable inputs.
    Thanks & Regards,
    Kavitha.

    Hi
    Hi
    My question what the end user can do with the contract number information. please expain the customer what ae the functionalit he may miss if check status hidden.
    There are so many functionality of Check status you may miss if you hide.
    If it is very critical business requirement from customer you can think of to hide only follow on document folder rather than whole cart.
    In the Check Status application, you can check the status of your shopping cart and check the status of the individual items in your shopping cart.
    You can search for your shopping cart using various criteria, such as shopping cart name, creation timeframe, or status. You can search using the following extended statuses.
    You can not print a cart.
    See check status  functionalities of shopping cart
    http://help.sap.com/saphelp_srm30/helpdata/en/8b/4fa9495db211d2b404006094b92d37/content.htm
    so if your shopping created a follow on document
    BUS2000113 - business object - Contract
    then you are trying to protect acesss for this transaction
    bbpsc04
    or
    try to hide a follow on document instead hiding whole cart.
    but try to convince the user the important functionality of the Check status.
    br
    Muthu

  • My macbook pro 15inch running on maverick when i try to click on wi-fi says no hardware installed please help i need wifi and and under network staus wi-fi is fail and under network airport is not connected can anybody help the wifi icon has a x and does

    my macbook pro 15inch running on maverick when i try to click on wi-fi says no hardware installed please help i need wifi and and under network staus wi-fi is fail and under network airport is not connected can anybody help the wifi icon has a x and does not even let me turn it on

    Have you attempted to reset the SMC? That would be the first step. Hold the left control, option, shift key and the power button for about 5 seconds and release. Then try to reboot. Might as well reset the PRAM as well. Hold command, option, P, R on start up until the machine restarts. If that doesnt' have any affect we'll have to dig deeper into a potential hardware failure.
    If this method doesn't work, check the webcam that will tell the problem is on the iSight & WiFi cable. If your webcam is ok, then it'll be the WiFi card problem. Hope it can help ;-)
    - xia_us9

  • IDOC staus 64 Processed By RBDAPP01 Ended in Idoc staus 51 How to Proceed?

    Hi All ,
    I had set of IDOCS in Staus 64 i processed them using the report RBDAPP01. i scheduled the back ground Job all iDocs ended in status 51 Please assist what need to be done next to process the IDocs further or to post the documents..
    Thanks in Advance
    Badarinarayan Patil

    Hi,
    Go to WE02..Give the IDOC number..
    Press F8..
    Expand the status..
    Under the status 51..Check what is the error message you are getting while posting the IDOC..
    THanks,
    Naren

  • How to automate check of xlScheduler status in 11g

    All,
    I am trying to automate checking the status of the xlScheduler in OIM 11g. I know I can manually check the status but I want to automatically check the staus and email if not running. Does anyone have a way of doing this?
    Thanks,
    Chris

    In 9X we have written scheduler which run at regular interval checks status and send email accordingly
    in same way i think we can do in 11g also if they haven't provided any thing OOB.

  • Document has been checked out by A user for processing

    Hi Friends,
    We have three status in our process. CT (Create), IW (Inwork), RE(Release).
    We have following doc. status type for each status.
    CT- I (Initial)
    IW- O (Original Processing status)
    RE- S (Locked stats)
    User A has created document. Uer B has changed status to IW . User C trying to change to RE. In that case we are getting the following message. Document has been checked out by A user for processing.
    We are having Characteristics associated to doc. type. Those are not able to change while in RE release mode.
    I change the doc. status type to
    CT- I
    IW - C (Check in Status)
    RE- S
    and
    CT- P
    IW - I
    RE- S
    Even then problem remains the same.
    How to get rid of this.
    Regards,
    Sai Krishna

    hi,
    U can use only, Primary staus P
    And chec in status C
    And relesed statuse S
    This should work
    Benakaraja
    ??p

  • Collab 4.1 on g6 windows 2003 check out not working

    I am currently unable to check out documents from collab. We can downolad and even check-in, but not check out. I receive an error popup from IE that the the site is not available or cannot be found and to try again later. The portal base portal.xxx.com is listed. There is nothing in spy which leads me to believe that it may be security issue. This is an SSL installation and I have already imported the portal cert. Anyone experienced this?
    Thanks!

    Hi,
    Can You set ORACLE_SID variable and then check emctl status.If staus is running then You will able to access em.
    Or can You restart dbconsole once again using emctl start dbconsole or service.
    Thanks.

Maybe you are looking for