MMPV BDC / RMMMPERI through a Custom Program

Hello Guys,
I have a problem doing a BDC for t-code MMPV closing MM period automatically. I am not able to capture the log issued by tcode MMPV. Can anyone help me in this regard?
I was also thinking about submitting the program RMMMPERI but not sure how to update the variant with the right values and then submit the program with the updated variant.
Any suggestion in any one of the above issues will be helpful.
Thanks

You can have a driver program which can submit the report with parameters.
In your driver program.
report zdriver.
submit RMMMPERI
        with I_VBUKR = '0010'
        with I_BBUKR = '0020'
            and return.
You can do this with any parameter or select-options.
Regards,
Rich Heilman

Similar Messages

  • Trigger special function output type through a custom program

    Hi,
    I have to trigger the special function output type from a custom program.
    This custom program contains a BAPI and the output parameters of this BAPI are required as input to the second BAPI which is contained in the form routine of the special function output type.
    I am not able to understand how to trigger the special function as I dont know how the nast-objky will be updated
    and how the BAPI parameters will be passed.
    Is this has to be done through a Idoc
    Can anyone guide me on how to handle the above functionality.

    Hello,
    I am not able to understand your requirement completely...
    agree with above post....addition-
    1. Transport medium would be '8 - Special Function' where one program would fire and that can be used for further processing.
    2. If condition record are maintained and it is matching with parameters then output type with all transport medium would be called
    Thanks

  • POSTING G/L account documents through custom program

    While posting the documents through the tcode fb01,
    when I tick at PA segement button ASSIGNMENT TO
    PROFITABILITY SEGMENT screen opens, DERIVATION
    BUTTON is activated/enabled . But through a custom program when session is
    processed and when PA segement button is ticked on
    ASSIGNMENT TO PROFITABILITY SEGMENT screen, DERIVATION BUTTON is not visible. I can only see Continue, Next Page, Delete Assignment, and Cancel buttons. Where do I need to check this problem?

    Hi,
    Nope, in standard SAP you can not do that.
    You would need to develop your custom program for it.
    Regards,
    SDNer

  • How to save Custom control records through module pool program ?

    Hi guru ,
    1. How to save Custom control records through module pool program ?
    I wrote multiple lines of record in custom control
    Who to save that records ?
    thanking you.
    Regards,
    Subash.

    Hi,
    can refer following code -
    IN PAI , CODE is as follows-
    *&      Form  editor_output
    FORM editor_output .
    NARRATION1 is name of custom controller
      IF v_editor IS INITIAL.
      Create obejct for custom container
        CREATE OBJECT v_custom_container
          EXPORTING
            container_name              = 'NARRATION1'
          EXCEPTIONS
            cntl_error                  = 1
            cntl_system_error           = 2
            create_error                = 3
            lifetime_error              = 4
            lifetime_dynpro_dynpro_link = 5
            OTHERS                      = 6.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
      Create obejct for the TextEditor control
        CREATE OBJECT v_editor
          EXPORTING
            wordwrap_mode              = cl_gui_textedit=>wordwrap_at_fixed_position
            wordwrap_position          = line_length
            wordwrap_to_linebreak_mode = cl_gui_textedit=>true
            parent                     = v_custom_container
          EXCEPTIONS
            error_cntl_create          = 1
            error_cntl_init            = 2
            error_cntl_link            = 3
            error_dp_create            = 4
            gui_type_not_supported     = 5
            OTHERS                     = 6.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
      ENDIF.
    ENDFORM.                    " editor_output
    getting textdata in internal table as follows
    *&      Form  create_text
    FORM create_text .
      REFRESH : it_texttable,
                it_text.
      IF v_doc_number IS NOT INITIAL.
        IF v_editor IS NOT INITIAL.
          CALL METHOD v_editor->get_text_as_r3table
            IMPORTING
              table                  = it_texttable
            EXCEPTIONS
              error_dp               = 1
              error_cntl_call_method = 2
              error_dp_create        = 3
              potential_data_loss    = 4
              OTHERS                 = 5.
          IF sy-subrc <> 0.
            MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                       WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ENDIF.
    Now, our final text data is in internal table it_texttable.
    pls, Reward if found helpful.

  • Return new doc num from std R/3 to custom program?

    Colleagues,
    I am designing a process in FI, and need some help with a technical problem.  I have a custom table that contains a list of items, each with a status code.  This list is presented to the user in a screen.  Each line on the screen has a "Take Action" button.  Depending on the item status, "Take Action" will transfer control to a different FI transaction -- F-28 (post with clearing), or FB01 (create document).  I want to capture the results of the standard transactions (the new document numbers) back into the custom table. 
    Is this possible?  Both standard transactions will display the new document number in the status bar, but how do I make that information available to the custom program? 
    My plan is to have the standard transactions open in a new session (window), so that user can switch back and forth between the custom transaction and the  standard transaction.  However, I cannot trust the user to capture the document number manually.  I don't think a user exit would work, because there is nothing to distinguish these transactions from the hundreds of thousands of other F-28 and FB01 transactions.
    In my research, I did find a reference to a function module FI_MESSAGE_GET, but I cannot find any information about it, and the code itself is not enlightening.
    Thanks in advance for your help
    Patricia

    Hi All,
    Thank you for your suggestions. I am running them past my developers and will get back to you when I have heard from them.
    The reason for the custom transaction is this: External partners are transmitting data.  We have a batch process to automatically post this data.  Unfortunately, the partners do not always send enough data for the batch process to figure out what to do.  In our new process, we will capture the failed transactions in a log file.  We will present the logfile data to the users in a nice simple screen (like a spreadsheet) that allows them to click through to the standard posting transactions.  They need to have both sessions open so that they can figure out how to do the posting, based on the data in the log file.
    Because of the user interaction that is required (and the nature of the specific users who will be interacting), we cannot use BDC sessions -- we have to launch the standard transactions (such as FB01).
    All of this is pretty easy -- the tricky part is getting the actual posting data back to the log file.
    Thanks again!
    Patricia

  • Why in September when I purchased a through the Edge program with the $5.00 insurance/protection plan (that the sales associate handling the purchase on the phone recommended), is no longer valid?!  2 months after getting the Edge device, I go to make a c

    Where is the insurance and original Edge Agreement from September?  No one in Verizon knows. I purchased (rented) a Galaxy S4 through the Edge program, with the $5.00 insurance/protection plan (that the sales associate handling the purchase on the phone recommended),which is no longer valid!  2 months after getting the Edge device, I go to make a claim and Asurion will not honor it because I am not covered; however, all the order confirmation receipts emailed and physically sent with the device show the addition of insurance when I signed up for the Edge program.  According to Verizon (via live chat with 'Nicole'), this $5 protection plan no longer exists and the order numbers I have on my paperwork (multiple documents) are invalid in the Verizon system.  For over a week, I have spent more than 10 hours on the phone, live chat and in the store trying to get some sort of resolution and the customer service reps just put me on hold or promise to "call me back within 30 minutes after they speak to a supervisor" and (surprise!) they never return my call.  Or they send me to the store to show proof of my documents, but then those associates cannot help either.  Also, the 'Edge Agreement' in my profile has the wrong device (and serial #), wrong payment amounts and no mention of the 'consumer protection plan'  on it, which is listed on the order confirmation sent via email and with the actual Edge device on September 23.  Obviously, there was some sort of glitch or mistake on Verizon's part, but NO ONE WILL EVEN TRY TO ACCEPT THAT FACT!  WHY WON'T ANYONE GET BACK TO ME WITH SOME SORT OF EXPLANATION FOR ANY OF THIS?!  Is it typical for Verizon to do away with a service (i.e., $5.00/month protection) and not inform the customer of this?  And is it company policy to be as unhelpful as possible to a paying customer who needs assistance when there is cleary something wrong on your end?  And finally, am I really suppose to believe that Verizon customer service has no email addresses or fax machines so a customer can send you proof of what is on the receipt you sent and that I have to take more of my time to go to the actual store?!  Finally, does anyone at Verizon even read these messages or even give a F@#k about the customer as long as they keep making money?! 

    RLites22,
    I can understand your concern about the insurance you have on the line. I want to make sure that I put a fresh pair of eyes on your account to find out exactly what is going on. I did send you a Direct Message. Can you please respond back to me in the direct message so we can go over the account specifics. I really hope to hear back from you soon.
    KevinR_VZW
    Follow us on Twitter @VZWSupport

  • Pay Scale inrease - Custom Program

    HI  Guyz,
       A custom program is developed for the pay scale increase  and it should be  run on a regular basis as a background job to update the pay increase of the employees who have completed either 60 days or 6 months or 9 months from the hire or rehire date. The program   should perform the processing only for the hourly employees of the Personnel Area. The processing would consist of checking the current date with the employee hire or rehire date and determining the increase in amount based on the number of days the employee has been working. After the necessary processing is done the program will update new data records for the basic pay infotype for the associates who need to have an increase in the pay.
    Can someone help me with the technical steps needed for this development.
    Note:Pay Scale Reclassification program cannot be used as we are not implementing compensation management

    Yes ..
    This Bapi will do the same job & i guess in a easier way than BDC
    Call this Bapi in loop.
    Make sure to lock and unlock master records of employee before
    and after the call using
    BAPI_EMPLOYEE_ENQUEUE --- lock
    BAPI_EMPLOYEE_DEQUEUE -
    unlock
    <b>or</b>
    HR_EMPLOYEE_ENQUEUE  -
    Lock
    HR_EMPLOYEE_DEQUEUE --- unlock
    otherwise bapi will throw a message personnel number not yet locked.
    Hope this helps.
    Kindly reward in case useful.
    Rgds,
    Darshan

  • Portugal Payment medium format - PS2 - configuration and custom program

    Hello,
    this is my first post here, so first of all "hi!" and second, sorry if this thread isn't in the right forum.
    I need to do a custom copy of the PS2 payment medium format, which is used in Portugal. It would be a short development, I just need that the line starting with ":08:" only appears when using a pre-defined payment method.
    I've seen that in the FBZP tcode, in the "Pmnt method in company code" customizing point, at the bottom there is this section, "Payment medium", where you can inform the Format (which it should be PS2) or the payment medium program (i think that for Portugal it's RFFOM100). You can only inform one option. Which one do you recommend? (I'm more used to work with purchase orders, so this are my first steps in the payment program)
    So my question is, in order to do this custom code, should it be a copy of the PS2 format (ZPS2?) or a copy of the RFFOM100 program? In any case, where can i look for the code section where to replace the standard SAP code for our custom program?
    Thank you very much!
    Warm regards,
    Gustavo

    Hi Gustavo,
    If you take a look in FBZP - Payment Method Country, you will see a "Payment Mathod" section. There you will have 2 payments programs type: Paymt Medium Workbench (PMW) and Classical.
    PS2 payment medium format is only used for PMW type and RFF* for Classical PM. These work to print and execute payments through F110.
    In my understading you should use PS2 because is the original need on your question.
    I hope I help you. Reply me if you have more questions.

  • How to See logs for custom programs from without the logviewer in NWA

    Hello Experts,
    The JavaAS developers want to see the logs for their custom programs from without the logviewer in NWA.
    Do you have any experience or know of any reference materials to instruct them on where to write their logs, and how to configure NWA to see them?
    Thanks
    Jibin.

    Hello Jibin,
    Your developers should familiarize themselves with the Logging Framework of the J2EE Engine.
    Here is the guide:
    http://help.sap.com/saphelp_nw04/helpdata/EN/a2/15ab41d60bcb46e10000000a155106/frameset.htm
    If they use the Logging Framework you would be able to access the logs through NWA.
    Regards,
    Ventsi Tsachev
    Technology Development Support (J2EE Engine)
    SAP Labs, Palo Alto, Ca (USA)

  • GOS(Generic Object Services) for Custom program ?

    Hi All,
    My requirement is to have GOS option to attach document for Custom program against each record.
    Do anybody have faced the same kind of requirement,please let me know how to do.
    Bharathi.J

    Hi Bharathi
    i to got the same requirement
    through manually im attaching the files,notes and URL's
    but how to attach through any class
    i use CL_GOS_DOCUMENT_SERVICE in that
    CREATE_ATTACHMENT method
    but it is not attaching the files to my GOS menu
    can u  help me
    Thanks
    Surendra

  • How to create a customer program for "PPMOD"feature(pe03)?

    Hi,
    I want to create customer program for "PPMOD"feature(tcode:pe03),who can tell me the steps? (ECC6.0)
    thanks a lot?
    Olivia Yang

    Hi,
    /1PAPA/FEAT610PPMOD the generated program for the feature.
    You are forbidden to change this generated program. Ideally whatever logic regarding the feature needs to be put through pe03 tcode of feature and not in the program.
    Still if there are any changes that need to be done to the program you can enhance the program.
    To enhance the program you need to go to se 38 and open this program and press Shift + F4
    Then Goto->Enhancement operations->Show implicit enhancement operations
    Then go to yellow line right click on mouse and Enhancement implementation->Create
    And put your own code in the implementation.
    Regards,
    Divya

  • How to create an install medium of Windows 8 with custom programs (like an OEM install)

    Hello all,
    I am interested in setting up a small business of making PCs for people around my area, and was curious if there was any way I could install Windows 8.1 on those computers with custom programs (i.e. Browsers, Anti-virus, etc.), but not have to create a user
    account to do so? I want people to get these computers and go through the regular setup account process when they turn them on for the first time, just like with any computer from a regular OEM. Basically, I am trying to create my own OEM instillations of
    Windows.
    Thanks for any help, and let me know if I need to clarify anything.
    Graham

    Hi,
    Andreas is right, we have many ways to deploy Windows 8.1 like OEM.
    You can also try the ADK:
    Windows Assessment and Deployment Kit (Windows ADK) for Windows 8.1
    http://www.microsoft.com/en-hk/download/details.aspx?id=39982
    The Windows ADK enables two key scenarios: Windows deployment and Windows assessment.
    Windows Deployment is for OEMs and IT professionals who customize and automate the large-scale installation of Windows on a factory floor or across an organization.
    Kate Li
    TechNet Community Support

  • Custom program for Dynamic Actions

    Iam using BDC’s for Actions and Org.Assignment infotypes. The dynamic actions are planned to be carried out by using separate function modules.
    My query is, On the plausibility check conditions lots of structures are referred (eg: PSPAR,RP50D etc). How do i perform this condition check in the custom program (for dynamic actions) as these structures do not have any data?
    Thanks
    Message was edited by: SShenoy

    1. PSAVE-FIELDNAME will use the old values in the FIELD. It will be used in cases when we have to do plausibility checks on the basis of new as well as old value, eg, we want to use dynamic action for employees whose status changes from 'inactive' to 'active'
    2. Sequence no represents sequence no. If for a particular Infotype and FCode, we have to specify which step has to be performed first. Sequence no tells the system exactly this thing.
    Regards
    Lincoln

  • Best way to view PDF page(s) with in a custom program

    What is the best approach for viewing PDF page(s) in a custom program?  I know you can hook in Adobe PDF Viewer, but I need access to mouse clicks and location on the page.  As well, I need to control the scale and zooming of the PDF page(s).
    I'm not looking to change the PDF file, but rather draw over top of the page(s).
    Thanks for any help or pointing me in the right direction,
    Shayne

    Actually, Ive already implemented an interface after throughly reading all the Acrobat documentation on Javascript within the PDFs. Its functional but not spectacular. It simply uses the setField function to get and set the values to the Field objects. It do this by posting messages to and from the web page that is hosting the PDF object.
    I was wondering if there is a better way. It needs to stay a thin-client interface - nothing besides PDF Reader loaded on the workstations. I am currently investigating the several other methods but was hoping for some guidance.

  • Add Comment in the very start of every Custom Program Automatically

    Hi, Friends,
    I have more than one thousand custom program and I have a requirement to add 4 to 5 lines of  comment in the very start of every program, means if code of the program is starting from the 1st line than this line must go to number 5 if I enter the 4 line comments. Because of large number of program it is very difficult to open every program and than add comments line and save it to request I want to save all these program to one request.
    I have searched but not found such requirement from any one before.
    Is it possible through any FM or if some one have sample Code Please Guide me.
    Thanks and Kind Regards,
    Faisal

    Hmm,
    Thanks for your reply i am doing the following way but it directly insert the lines in the source code.
    DATA: pro_line(255),
          it_pro LIKE TABLE OF pro_line.
    READ REPORT 'ZFSL_TEST' INTO it_pro.
    pro_line = '*&H*********************************************************************'.
    INSERT pro_line INTO it_pro INDEX 1.
    pro_line = '*&H        Requested By : Sales and Distribution Department            *'.
    INSERT pro_line INTO it_pro INDEX 2.
    pro_line = '*&H         Approved By : GM(S&M) and PM(SAP)                          *'.
    INSERT pro_line INTO it_pro INDEX 3.
    pro_line = '*&H         Tables Used : kna1, pa0001, zsdotr, zsdo, zsdo_ded         *'.
    INSERT pro_line INTO it_pro INDEX 4.
    pro_line = '*&H Program Description : Fix Sampling Report For Standard Pack        *'.
    INSERT pro_line INTO it_pro INDEX 5.
    pro_line = '*&H*********************************************************************'.
    INSERT pro_line INTO it_pro INDEX 6.
    INSERT REPORT 'ZFSL_TEST' FROM it_pro.
    its ok for now but my Requirement was to insert the lines and also save to the Given request as a active copy with the inserted lines.
    Thanks and Kind Regards,
    Faisal

Maybe you are looking for