Get plan number after calling IP01 using BDC

Hi,
I am using IP01 by BDC to create maintenance plan.
Is there any mthode to get  plan number after the call instead of  reading the message table  within call statment.?
Thanks.

One possible way is find an implicit enhancement point and fill up the plan number to memory id and in your bdc call program import the same from memory id

Similar Messages

  • Call transaction using bdc tab and also skip first screen??

    Hi,
    Please help.
    I want to call transaction PA30 fill it with values which are determined only at runtime and then skip first screen.
    The screen doesn't have parameter fields so i cannot use 'set parameter id'.
    I also cannot create a transaction with parameters as I only have these at runtime.
    Anyone done anything like this???

    hi,
      you might be populateing the itab bdc_tab with the corresponding values fronm the recording.
    while doing the recording go until to the screen wher u want to finsih.
    and populate the bdc_tab wit the ok code,screen number and the value.
    this will do.
    for eg see the code below.
    METHOD analyze_log.
      DATA : wrk_extid TYPE balhdr-extnumber.
      DATA : wrk_date(10) TYPE c.
      DATA : it_rspar TYPE TABLE OF rsparams .
      DATA : wa_rspar TYPE rsparams.
      DATA: it_bdcdata TYPE STANDARD TABLE OF bdcdata,
          wa_bdcdata TYPE bdcdata.
      DATA: params TYPE ctu_params.
      CONSTANTS : object TYPE balhdr-object VALUE 'ZKIV_LOG'.
      IF wa_kopf-vertr_nr IS NOT INITIAL.
        CONCATENATE wa_kopf-vertr_nr '/' wa_kopf-nachtr_nr  INTO wrk_extid.
        wrk_date = '01.09.2006'.
        SET PARAMETER ID 'BALOBJ' FIELD object .
        SET PARAMETER ID 'BALEXT' FIELD wrk_extid.
        wa_rspar-selname = 'ALDATE'.
        wa_rspar-sign = 'I'.
        wa_rspar-kind = 'P'.
        wa_rspar-option = 'EQ'.
        wa_rspar-low = wrk_date.
        APPEND wa_rspar TO it_rspar.
      ELSE.
        CLEAR wrk_extid.
        SET PARAMETER ID 'BALEXT' FIELD wrk_extid.
      ENDIF.
    Update BDC tab
    --Call SLG1 using BDC--&
      params-dismode = 'E'. "Show errors only
      CLEAR wa_bdcdata.
      wa_bdcdata-program  = 'SAPLSLG3'.
      wa_bdcdata-dynpro   = '0100'.
      wa_bdcdata-dynbegin = 'X'.
      APPEND wa_bdcdata TO it_bdcdata.
      CLEAR wa_bdcdata.
      wa_bdcdata-fnam = 'BDC_CURSOR'.
      wa_bdcdata-fval = 'BALHDR-ALDATE'.
      APPEND wa_bdcdata TO it_bdcdata.
      CLEAR wa_bdcdata.
      wa_bdcdata-fnam = 'BALHDR-ALDATE'.
      wa_bdcdata-fval = wrk_date.
      APPEND wa_bdcdata TO it_bdcdata.
      CLEAR wa_bdcdata.
      wa_bdcdata-fnam = 'BDC_OKCODE'.
      wa_bdcdata-fval = '=SELE'.
      APPEND wa_bdcdata TO it_bdcdata.
      CLEAR wa_bdcdata.
      wa_bdcdata-program  = 'SAPLSLG3'.
      wa_bdcdata-dynpro   = '0100'.
      wa_bdcdata-dynbegin = 'X'.
      APPEND wa_bdcdata TO it_bdcdata.
      CLEAR wa_bdcdata.
      wa_bdcdata-fnam = 'BDC_OKCODE'.
      wa_bdcdata-fval = '=&F03'.
      APPEND wa_bdcdata TO it_bdcdata.
      CLEAR wa_bdcdata.
      wa_bdcdata-fnam = 'BDC_SUBSCR'.
      wa_bdcdata-fval = 'SAPLSBAL_DISPLAY                        0101SUBSCREEN'.
      APPEND wa_bdcdata TO it_bdcdata.
      CALL TRANSACTION 'SLG1' USING it_bdcdata OPTIONS FROM params.
    --End of BDC--&
    ENDMETHOD.
    here wat i m doing is that i dont want the subscreen 101 to be displayed..
    Message was edited by:
            Sandeep S

  • Called Screen using BDC Call and Submit

    Hi there
    while returning back from the Called Screen using BDC Call , i am not able to get the Basic Screen. It displays The Selection Screen of the called Transaction.
    Kindly plz help me regarding this problem
    Thanks
    Saurabh

    Which Transaction are you calling?
    Regards,
    Deepa Kulkarni

  • Creative Cloud Student and Teacher Edition .I use the Macbook.I got the mail that said my order was checked,but I don't get the number.So I still use trial.Hoe can I change my character into member?

    Creative Cloud Student and Teacher Edition .I use the Macbook.I got the mail that said my order was checked,but I don't get the number.So I still use trial.Hoe can I change my character into member?

    This is an open forum, not Adobe support... you need Adobe support to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"

  • Where can I get a number to call a apple representative to speak to me right now?.

    Where can I get a number to call a apple representative to speak to me right now?.

    If you want to talk to Apple Support:
    http://support.apple.com/kb/HE57
    They do not offer 24/7 support, so whether you'll get through to them immediately will depend on when you call.
    Regards.

  • I dont get it? After calling vzw customer care

    I have a quick queston, i thought the concept through this whole thing was for your cc to get charged when the item is SHIPPED.  My credit card was charged but no tracking number available.  After calling customer care they said it will be shipped on the 10th get here on the 11th.  Weird, jw why they would charge my card now?

    because if your card was denied someone else can have your phone.

  • Loop through matrix before document saved (or get doc number after save)

    Hi All,
    I would like to loop through the matrix of a document (e.g. an invoice) before it is posted to the database (when the add button is clicked), but I would like to know at that point whether the invoice will definitely be posted.  When you look at ActionSuccess, the items in the matrix are already cleared.
    Alternatively I would like to get the number of the invoice that was added so I can loop through the invoice lines records in SQL.
    I have looked at quite a number of posts on tjis forum, but none of them has a definite answer to either of the options - or none I could find at least
    Your help is appreciated and thanks in advance,
    Adele

    Hi Adele,
    Here some thoughts form Frank and me:
    As you mention, it makes basically no sense to process anything in such a document when a user can still cancel the saving (what about approvals???!!!!!).
    To do the checks "after save" there are two options:
    An easier one which is not 100% reliable from a "data perspective" - and one which is 100% reliable, but is a bit more "dangerous" because you will need to rely on an event to come BeforeAction = True AND BeforeAction = False (remember the "BubbleEvent" etc.)
    Option 1.
    (Not 100% (99.5%?) reliable is like suggested in some posts, but sometimes basic things are missed:
    Use SQL in the ItemEvent handler:
    If pVal.ItemUID = "1" And
    pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED And
    pVal.ActionSuccess = True Then
    "SELECT DocEntry FROM OINV WHERE UserSign = <internal number of user> AND UpdateDate = '<today>' AND DocTotal = <the value in UI> AND ...<maybe additional criteria as another person can reuse the user code - or a "DI API Add-On" may add a document in parallel>... ORDER BY DocEntry desc"
    Theoretically it could happen that through a second connection / application instance a document could be posted at the same time. That's why this way is not 100% reliable...
    Re time between "Add" and the SQL to retrieve the data being short (on what e.g. Florian relies on):
    Please take in mind that you cannopt really count on the time being that short (milliseconds) when thinking about speed of the client PC, network traffic, users working at the same time with a company database, overall database response when working with a bigger database etc. etc.!!!
    Option 2.
    In the ItemEvent handler when BeforeAction = True start a global transaction that will block the table. After the ActionSuccess (BeforeAction = False) make a select to the table to get the desired data, and finally end the Transaction by commiting the data.
    HTH,
    Felipe & Frank

  • How to get page number from the PDF using Javascript

    Hi,
    We are having list of Single page PDF. The pdf are named in the order,
    ISBN_Author_01.PDF  (with real page number as i)
    ISBN_Author_02.PDF  (with real page number as ii)
    ISBN_Author_03.PDF  (with real page number as iii)
    ISBN_Author_04.PDF  (with real page number as 1)
    ISBN_Author_05.PDF  (with real page number as 2)
    ISBN_Author_06.PDF  (with real page number as 3)
    ISBN_Author_nn.PDF  (with real page number as 500)
    Here each pdf has a page number and in sequential order.
    The task is to check whether all the pdfs are in sequential order (i.e i, ii, iii, 1, 2, 3). If any page is missing, the script should throw an error report.
    To do this task, I am writing a Javascript to get the real page number from the PDF.
    Can anybody help me how to get the page number from the PDF using Javascript.
    Thanks,
    Gopal

    The "real" page number within a PDF is the count of the physical page starting at 0, zero.
    pageNum numPages
    The number printed on each page is the page label.
    setPageLabels  getPageLabel
    You will have to open each PDF and your script would need to know the page label for that file. I would expect you would need to build a 2 dimensional  array of the file names and the page label for the page within that array.

  • Get IDoc-number from flat IDoc using dynamic configuration

    Dear experts
    In an IDoc2File scenario I have added the IDoc-number to dynamic configuration using the folling code in an UDF:
    DynamicConfiguration conf = (DynamicConfiguration)
    container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey FileName = DynamicConfigurationKey.create("http:/"+"/sap.com/xi/XI/System/File","DOCNUM");
    conf.put(FileName, a);
    The information is stored in the SOAP message
    <SAP:DynamicConfiguration SOAP:mustUnderstand="1">
      <SAP:Record namespace="http://sap.com/xi/XI/System/File" name="DOCNUM">0000000000012345</SAP:Record>
    </SAP:DynamicConfiguration>
    Can anybody tell me how I can access this information in the "variable substitution" section of the CC? Perhaps something like "message:docnum"?
    Additional information:
    Taking the IDoc-number from the payload using e.g. "payload:ORDERS05,1,IDOC,1,EDI_DC40,1,DOCNUM,1" does not work, since the XML-IDoc has been converted to an flat-IDoc.
    Thanks in advance for any good ideas
    Markus

    Dear Rodrigo and Sarvesh
    Thanks for your help so far! I applied your hints and now it is working fine.
    But now I have the following additional questions
    1.) My message mapping only maps the input IDoc to an output IDoc of the same type and structure. The MM is only required to process the UDF. Is there another, better solution to achieve my requirement that the IDoc-number shall be part of the filename?
    2.) In the CC you have the possibility to use temporary files (section "Processing", Option "Put File" = "Use Temporary File". I think this will not work with the given solution, will it?
    To possibly help somebody else or clarify the mechanism once again, I wrote down how my solution now looks like.
    My UDF in the message-mapping looks like this
    - Input = DOCNUM of IDoc, e.g. ORDERS05/IDOC/EDIDC/DOCNUM
    - Outpt = DOCNUM of IDoc, e.g. ORDERS05/IDOC/EDIDC/DOCNUM
    - UDF:
    public String putDynamicConfiguration(String docnum, Container container) throws StreamTransformationException{
    try
         DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
         DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
         String filename = "Prefix_" + docnum + ".txt";
         conf.put(key, filename);
         return docnum;
    catch (Exception e)
         return docnum;
    In the CC the settings are now as follows
    File Name Scheme = . -> only a dot or something else, because this field is obligatory, even if it is not used in this case.
    Variable substitution (...)
        Enable -> unchecked
    Adapter-Specific Message Attributes
        Use Adapter-Specific Message Attributes -> checked
        Fail If Adapter-Specific Message Attributes Missing -> checked
        File Name -> checked
        Directory, File Type, Temporary Name Scheme for Target File Name -> unchecked
    When I send an IDoc to PI and view the Adapte-Engine Version of the message (the SOAP-document, not the payload) I can find the Filename:
    <SAP:DynamicConfiguration SOAP:mustUnderstand="1">
    <SAP:Record namespace="http://sap.com/xi/XI/System/File" name="FileName">Prefix_0000000000012345.txt</SAP:Record>
    </SAP:DynamicConfiguration>

  • Getting IDoc Number after posting it frm Java Program

    Hi All:
    I had written a Java Program to post an IDoc into the SAP System. I was successful in posting an IDoc. My next step is, to get the Idoc number generated by SAP system for the posted IDoc. Using this IDoc number i want to track its status.
    Can anyone please let me know how to get the IDoc Number from SAP from a Java program? I have Transaction ID with me, can i get IDoc Number via Transaction ID?
    Please let me know ur views on this.
    Thanks & Best Regard,
    - - Rajiv

    Hi Rajiv,
       Could you Please help to clear one thing .I am very new to SAP JCO Programming.To remove the dependency of Posting Data to SAP through RFC program which is written by SAP People ,I want to use IDoc,is it possible to use it ? if yes could u please help with Some Java code so i can post Data through Java Code to SAP with IDoc.
    Wait for Your Kind Reply.
    Thanks & Warm regards,
    Kamal

  • Problem in getting serial number after BDC of IQ04.

    Hi all,
    I am doing a BDC recording of IQ04 t-code and generating serial number internally passing material number,equipment category
    and no. of serial number to be generated.
    Serial number is getting generated and i am getting BDC message 'Serial numbers generated for material xyz'.
    But my problem is i want to capture that serial number generated.
    I tried get parameter id but it is not working.
    Can anyone help me.
    Thanks,
    Nidhi.

    Its not getting capture in message table of BDC.
    This is only the problem....Because while running std transaction IQ04 also we will get only one message  'Serial numbers generated for material xyz'. So not able to capture it.
    Please suggest.
    Regards,
    Nidhi.

  • How to get data from the called program using SUBMIT in a background job?

    Hi Experts,
    I've a program which creates a background job using JOB_OPEN and JOB_CLOSE function modules.
    Between the above function modules I need to call a program using SUBMIT VIA JOB statement.
    My problem is, How do I fetch some data in an internal table in the called program to the calling program after the SUBMIT statement?
    I tried to EXPORT and IMPORT the data, but they are giving a failed sy-subrc when using this background job.
    Kindly let me know your inputs and valuable suggestions.

    Kumar,
    When we execute a program as a background job then the output will be sent to Spool which needs to be fetched again.I guess we need to use Submit via spool as mentioned by Rajat.
    Check these threads to get some idea
    submit report to spool & import spool id
    Re: Generate Spool for a report
    K.Kiran.

  • How to get Spool Number after submtting the program and return

    Hi All,
    Could you please assist me on this issue. I have ABAP program which will create a spool number and this spool number is generated by submitting the same report. Now when try to retrive the spool number from sy-spono it is displaying as 000000 but it suppose to be the spool which is created during submit program. COuld you please assist me on this issue. I have added the part of code for your reference,
    DATA: l_params TYPE pri_params,
    l_valid TYPE string,
    w_spool_nr like sy-spono,
    p_m_werks like marc-werks.
    export p_werks to memory id 'P_WERKS'.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
    IMPORTING
    out_parameters = l_params
    valid = l_valid
    IF sy-subrc <> 0.
    ENDIF.
    import p_werks from memory id 'P_WERKS'.
    p_m_werks = p_werks.
    SUBMIT zmmlist01 with p_werks eq p_m_werks
    to SAP-SPOOL
    spool parameters l_params
    without spool dynpro and return.
    write: sy-SPOno.
    Thanks & Regards,
    Nagaraj Kalbavi

    Hi,
    You can use the code snippet as below :
    SELECT MAX( RQIDENT ) INTO G_SPOOL_NUM
    FROM TSP01
    WHERE RQCLIENT = SY-MANDT AND
    RQOWNER = SY-UNAME.
    Also you can use the FM RSPO_FIND_SPOOL_REQUESTS' and pass the relevant parameters to this FM. This should get you the desired results.
    Hope this would be of some help!!
    Regards,
    Lalit Kabra

  • RE-FX:call transaction using bdc-tab:No bdc_okcode for swapping table-entry

    Hello,
    I am trying to call transaction RERAOP (module RE-FX) to make an accounting transaction. There is 1 debit posting and 1 credit posting in a grid. Selecting the debit posting, a details scrren is shown, consisting of 2 registers.
    On the first register you have to fill different fields. At this point it isn't possible to select the second register. The second (credit) posting is diplayed when you hit the enter key. After the fields in the details screen of this (credit) postings have been filled, it is possible to swap back to the first (debit) posting with a double-click on the first entry of the postings-table.
    Finally I come to the point ...
    If I record these steps (batch-input recorder) and generate an report of this code there is no bdc_okcode for the above mentioned swap back to the debit posting. While executing this report I get a lot of error message because the swap back to the debit posting doesn't work (--> because of the missing bdc_okcode) and therefore the batch input tries to fill fields which are not on the active screen (because they are on the 2. register which is not displayed).
    Hope that there is someone out there who:
    1. Understands my miserable english   and
    2. has an advice for me.
    Thanks in advance!!!
      Stephan
    Edited by: Stephan Scholze on Apr 22, 2008 1:34 PM
    Edited by: Stephan Scholze on Apr 22, 2008 2:24 PM
    Edited by: Stephan Scholze on Apr 22, 2008 3:19 PM

    Not sure how much I can help as we don't run RE-FX (RERAOP - what's the program name btw?) at any sites I work at, but a couple of general BDC things you might try (based on problems I've had with BDCs to other Tcodes)...
    When you are in that transaction normally do a right click to see what function codes are defined as there might be one there that allows you to switch between these debit & credit data entry places (how are they rendered, btw - are they ALV grids or what?  If they are table controls then you should be able to position the cursor on row 1 and trigger an F2 double-click)... also look at the PF-STATUS carefully in case (once again) there is a function code that lets you swap from DR to CR & vice versa... and even browse the source code in the user-command for the screen might give a clue as to how to achieve this.  Of course it may not be possible if the data entry is control based i.e. the input areas are provided in the SAPGui not the application server (such as the text editor & ALV grids)... in which case you start hunting for BAPIs and function modules and the like, or end up having to pass data into the transaction via something like an "export" and catch it inside a user exit or enhancement via an "import"... all rather messy, but quite possible.
    Jonathan

  • Get Invoice Number after adding the invoice

    Hi,
       I am adding a service invoice to SBO using the DI api. I am able to create the Invoice successfully. Immedietly after I execute the Invoice.Add line, I would like to get the Docentry that was assigned to the invoice. What is the bst way to do this? Appreciate any help you can give me.\
    See code I am using:
    private void CreateSAPServiceInvoice()
                   SAPbobsCOM.Documents oServiceInvoice;//ChargeBack Invoice.
                   SAPbobsCOM.Documents oPaymentInvoice; //Orig: Invoice
                   SAPbobsCOM.Payments_CreditCards pCC;
                   oServiceInvoice = (SAPbobsCOM.Documents) frmMain.oCompany.GetBusinessObject(
                        SAPbobsCOM.BoObjectTypes.oInvoices);
                   oPaymentInvoice = (SAPbobsCOM.Documents) frmMain.oCompany.GetBusinessObject(
                        SAPbobsCOM.BoObjectTypes.oInvoices);
                   oServiceInvoice.DocType=SAPbobsCOM.BoDocumentTypes.dDocument_Service;
                   oServiceInvoice.CardCode = pmt.CardCode;
                   int x = pmt.Invoices.Count;
                   //Get CC Payment Info
                   pCC = pmt.CreditCards;
                   for (int i=0;i<pCC.Count;i++)
                        pCC.SetCurrentLine(i);
                        this.CBAccountInfo= modcb.cbaccts.Find(pCC.CreditCard);
                        if (this.CBAccountInfo != null)
                             //Service lines
                             oServiceInvoice.Lines.ItemDescription = this.pCBAcct.AccountName;
                             oServiceInvoice.Lines.AccountCode = pCC.CreditAcct;
                             oServiceInvoice.Lines.Price = pCC.CreditSum;
                             oServiceInvoice.Lines.TaxCode="0";
                             oServiceInvoice.Lines.Add();
                   //Add the invoice only if any lines have been added to the
                   //Service Invoice.
                   if (oServiceInvoice.Lines.Count > 0)
                        //Add the invoice
                        int j = oServiceInvoice.Add();
                        if  (j!=0)//If there is an error
                             int ix; string m;
                             frmMain.oCompany.GetLastError(out ix,out m);
                             throw new Exception(ix + ":" + m);          
                        else
                             j =oServiceInvoice.DocNum;

    I think this thread might have some useful information for you.
    After Save Document: How to get DocNum, LineNum

Maybe you are looking for

  • One Time Flat File load in a Cube that extracts from ECC

    Hi, I have a cube that is already extracting data from ECC on a daily basis. I am asked to load some historical data into the cube from their legacy system. My question is, how do i prepare that file from the legacy system to match the fields in the

  • Scrollable frames. Buttons not working.

    Hello. I have a problem with buttons in the scrollable frames. I have a slideshow with a thumb's. Each thumb consist of MSO (non active icon and active icon) and clear frame - button to that MSO and to slide foto. The thumb's grouped and placed into

  • Exporting uncompressed/higher quality tracks

    This has probably been answered, but I couldn't find the info I needed searching the old posts, so here goes... I'm working with a friend via email on some music projects. He's recording guitar, drums and vocals in Cubase on his PC, and sending me MP

  • BBM not working after download

    i downloaded the newest version of BBM and after i turn off the power and rebooted, i get an error - "Cannot set uo BBM - a temporary BBM server error has occur" - i retried, uninstalled - reinstalled - turn power off - back on again, etc.

  • Lens distortion presets are missing in Premiere Pro CC 7.2.2

    Lens distortion removal folder is missing completely. Can anyone suggest how to fix it? Perhaps there is a way to download those presets separately?