Creation of Folders/Documents in Rooms

Hello
Can anyone help me with the creation of Folders and Documents programmatically(at run time) in Rooms?
Thanks
Raj

Thanks Detlev
but I need to create the folder/documents programmatically.
i.e. if my room name is ROOMNAMETESTING then inside it I need to create folders/documents in /room_structures/ROOMNAMETESTING/Documents folder.
However I am stuck in getting the roomId from room name.
If I have the roomId then
IRoom room123 = roomsAPI.getRoom(roomId);
then I can find out
roomRID = room123.getRoomStructureRid();
After that I need roomId for /Documents folder.
Lets say some how I get it then its easy
just get
rid = RID.getRid(roomRID"/"RID_of_/Documents)
parent = (ICollection)ResourceFactory.getInstance().getResource(rid,context);
ICollection collection = parent.createCollection("FolderName",null);
Can you please help me getting both the roomId for my room and then /Documents ID.
Thanks
Raj

Similar Messages

  • Creation of folders within the home folder on a new user

    I sold my Dual 2.0 G5 to a friend. Instead of doing a clean install of Tiger, I made a new user in his name and deleted my old user. In his home folder there was just 'desktop' and 'library' folders. Once we opened up iPhoto, a 'pictures' folder was created automatically. And once we opened iTunes a 'music' folder was created. I'm wondering how to have the OS automatically create the other folders:
    documents
    movies
    public
    sites
    I guess I assumed it would automatically create these with the creation of a new user file. I know I can just create these manually, but the fact that they normally have the little icon on each folder, I'm wondering if there is a way to have the OS create these. Or if that even matters.
    Any help would be appreciated,
    Keith

    I'm wondering if there is a way to have the OS create these. Or if that even matters.
    I wouldn't worry, as you've seen already, they get created as needed.
    probably iMovie or such will make a Movies folder, and so on, but you could simply use the Finder to SHIFTCMDN, (Finder>File>New Folder), to make them if you're worried.

  • Unable to block creation of sales document from Quotation thru user status

    Dear Experts,
    I have maintained a status profile in my Quotation document through the use of user status. I have defined a status to forbid creation of sales document if the status has not yet been set to "Approved".
    However, even when the status is not yet "Approved", it still allows me to create subsequent sales document from this Quotation.
    Anything that I have missed here?

    Hi,
    It should not happen.
    Please check the Object types for which the status profile is created. It should be for either Sales Order header or Sales order Item.
    Make sure that the "create sales document" is "forbiddden" for the initial status only.
    Also please check Low- High numbers for each status.
    Hope this helps.
    Regards,
    Sharan

  • Creation of settlement documents, how to influence

    Hi  team ABAP,
    i have a requirement to influence creation of settlement documents which get created via TA MEB1 using the pushbutton "Settlement".
    There is a SMOD/CMOD project which we use as userexit.
    we use SMOD lwbon003, component EXIT_SAPLWN01_003.
    i dont need to do much, i just need to "enrich" those settlements with LIFNR, PRCTR and MWSKZ.
    the local interface of my exit component EXIT_SAPLWN01_003 looks like following:
    *"*"Lokale Schnittstelle:
    *"  IMPORTING
    *"     VALUE(I_ARRANGEMENT) LIKE  KONA STRUCTURE  KONA
    *"     VALUE(I_SETTLEMENT_VALUES) LIKE  ARRANG_VAL STRUCTURE  ARRANG_VAL
    *"     VALUE(I_VARIABLE_KEY) LIKE  VAKE STRUCTURE  VAKE
    *"     VALUE(I_CONDITION_RECORD) LIKE  KONP STRUCTURE  KONP
    *"     VALUE(I_CONDITION_SCALE) LIKE  CONDSCALE STRUCTURE  CONDSCALE
    *"     VALUE(I_T6B1) LIKE  T6B1 STRUCTURE  T6B1
    *"  EXPORTING
    *"     REFERENCE(E_SETTLEMENT_VALUES) LIKE  ARRANG_VAL STRUCTURE
    *"        ARRANG_VAL
    *"  TABLES
    *"      T_VARIABLE_KEY STRUCTURE  VAKE
    *"      T_CONDITION_RECORD STRUCTURE  KONP
    *"      T_CONDITION_SCALE STRUCTURE  CONDSCALE
    *"      T_SETTLEMENT_VALUES_MWSKZ STRUCTURE  ARRANGVALW
    *"      T_SETTLEMENT_VALUES_WERKS STRUCTURE  ARRANGVALW
    *"      T_ERROR_MESSAGES STRUCTURE  ARRANG_ERR
    *"  EXCEPTIONS
    *"      ERROR_MSG_SETTLEMENT_VALID
    *"      ERROR_MSG_SETTLEMENT_INVALID
    *"      FATAL_ERROR_MSG_USER_EXIT
    I´ve tried a lot, but nothing really worked out, does anyone have expierience in how to use this interface correctly?
    Well LIFNR works fine... but the rest.
    I have tried to change MWSKZ in the one existing record i got in parameter T_SETTLEMENT_VALUES_MWSKZ .
    It was displayed in the simulate screen, but no tax was calculated and posted, in the FI document the old MWSKZ showed up which was in my record BEFORE i changed it.
    Next thing i tired is to add a second record into parameter T_SETTLEMENT_VALUES_MWSKZ, used some imaginary 10% tax calculated the value myself and added the record. Didnt work out either.
    Im kinda stuck here, maybe someone can give me a tip.
    thx for sharing your time.

    Ok, Problem finally solved.
    After reading the ducomentation on the EXIT a bit i could correct some problems with filling the structures properly which enabled me make him calculate tax as i want.
    For the assignment of the FI-documents to the profit center we used a FI-substitution.

  • BAPI for creation of material documents/movements

    Hi Everebody:
    I need some help regarding to bapis for the creation of mateial documents and/or movements. I have been trying to implement bapi BAPI_GOODSMVT_CREATE, but this bapi does not have (import) the posting time in document, which is very important for my porpuse.
    So, I would appretiate a lot any information anybody could give about any bapi I could use to create material documents or material movements but incluidng the posting time in document (field MKPF-OIB_BLTIME).
    Regards

    You can check MB_CREATE_GOODS_MOVEMENT which has mkpf as inporting parameter.

  • Creation of material Documents for RMPM adjustments using BAPI

    Hi
    can any one help me Creation of material Documents for RMPM adjustments using BAPI...
    i should be grateful to you...
    advance thank you
    with regards
    venkat

    You can check MB_CREATE_GOODS_MOVEMENT which has mkpf as inporting parameter.

  • How identify closed accounting period to restrict creation of billing document in sap

    Hi Experts,
    I have a requirement to identify the  closed  periods in sap based on this we need to restrict the creation of billing document .
    Actually we are working for  Brazil  client, there we have notafiscal   which created along with billing document.we are maintaining  periods monthly basis.
    When the periods are closed  accounting document not created and billing document is created  this is working fine . But over scenario along with billing document notafiscal number is also created which  is causing the problem. This notafiscal should not be created without a accounting  document.
    so my client wants to restrict creation of billing document also when these monthly periods are closed.
    Please suggest me a solution.
    Regards
    Ravi

    Helllo Ravinder,
    To check if a period is closed using the FM FI_PERIOD_CHECK.
    First calculate the period of the FI document date.
    DATA: GJAHR LIKE BKPF-GJAHR,
           MONAT LIKE BKPF-MONAT,
           POPER LIKE T009B-POPER.
    CALL FUNCTION 'FI_PERIOD_DETERMINE'
           EXPORTING
                I_BUDAT        = I_BUDAT
                I_BUKRS        = I_BUKRS
    *          I_PERIV        = ' '
    *          I_GJAHR        = 0000
    *          I_MONAT        = 00
    *          X_XMO16        = ' '
           IMPORTING
                E_GJAHR        = GJAHR
                E_MONAT        = MONAT
    *          e_poper        = poper
           EXCEPTIONS
                FISCAL_YEAR    = 1
                PERIOD         = 2
                PERIOD_VERSION = 3
                POSTING_PERIOD = 4
                SPECIAL_PERIOD = 5
                VERSION        = 6
                POSTING_DATE   = 7
                OTHERS         = 8.
    IF SY-SUBRC = 0.
    MOVE MONAT TO POPER.
            CALL FUNCTION 'FI_PERIOD_CHECK'
                 EXPORTING
                      I_BUKRS          =  I_BUKRS
    *                I_OPVAR          = ' '
                      I_GJAHR          =  I_GJAHR
                      I_KOART          = '+'
    *                i_konto          =
                      I_MONAT          = POPER
                 EXCEPTIONS
                      ERROR_PERIOD     = 1
                      ERROR_PERIOD_ACC = 2
                      OTHERS           = 3.
    ENDIF.
    Tutorial ABAP How to check that posting date belongs to closed period - ABAP Development - SCN Wiki
    I hope you help.

  • Problem during creation of shipment document and shipment cost document

    Hi
    My client  facing problem during creation of shipment document and shipment cost document at the time of Batch Job
    Delivery no 897654: goods issue on 30.11 at 13:22. Shipment on 30.11 (VT01N).
    Shipment costs on 1.12 (VI01).
    the problem is the shipment document get created on 30.11.2010 but the shipment cost document get created on 1.12.2010
    pleas advice.

    Hi,
    Please check the batch job processing log.
    As per my understanding, business requires to generate the Shipment & Shipment cost documents immediatley.
    However there is some time between the documents creation time. I dont see any issue in the data or problem in the delivery docs Because system will not generate the shipment docs after 1 or 2 days if there is an issue with the data . There must be problem in the Batch Job.
    Analyse the batch jobs and timing of the job process.
    Let us know your feedback...
    Best Regards,
    MKumar

  • Error occurs, BAPI_ACC_DOCUMENT_CHECK for creation of accounting document

    Hi Experts,
    I am creating accounting document using BAPI_ACC_DOCUMENT_CHECK  Bapi F.M.  Profit segment number  is mandatory ( T.code KEDR)  for G/L account 411103 .when i am using this G/L account for creation of accounting document, occurs below error message.
    1.Field  Prof. Segmt  is required field  for G/L account 0495 411103
    2. Account 411103 requires an  assignment  to a CO Object.
    Please let me know how i can resolve this problem using with BAPI.
    Thanks
    Jaya Reddy

    The BAPI you have mentioned is used to check whether a posting to accounting is possible.  You can use the Bapi "BAPI_ACC_DOCUMENT_POST" for posting accounting documents.  Depending on the GL account configuration you have to pass PROFIT CENTER / COST CENTER to the BAPI.
    Regards
    vinod

  • Creation of PDF Document  using ADF Table data in new window

    Hi Guys,
    I have a requirement of creating a pdf document from adf table and it must open in a new window.I know creation of pdf document using itext pdf jar.But in my case how to write the table data to pdf and how to open it in new window.
    Thanks,
    Srinivas.

    In the TF do like this..
    view activity A-------dialog:invokePdf------->view activity B (invokePdf)
    Fragment A command button would be
    <af:commandButton action="#{pageFlowScope.PdfBean.openPDF}"
    text="Generate" id="cbpdf"
    useWindow="true"
    windowWidth="700" windowHeight="700"/>
    in the action add a return like return "dialog:invokePdf";
    Control flow outcome is "dialog:invokePdf". B would be just a empty fragment.

  • Block cancellation/creation of billing document on CLOSED posting period

    Hi Experts,
    Currently, user is allowed to cancel/create backdated billing document where period already closed, but it does not release to accounting automatically, due to the period has been closed.
    When account user found out that the accounting document is missing for the billing document, they have to re-open the period and manual release it to accounting, in order to generate the accounting document.
    Therefore, we need the billing document to be blocked for cancellation/creation on CLOSED posting period.
      Is there any settings in stardard SAP to block cancellation/creation of billing document on CLOSED posting period?
    would appreciate your inputs.
    Thanks and Regards,
    N.C.Reddy

    Hi ,
    We have blocked cancellation/ creation of billing document through below  user exit. Below is the progran code also.
    ***INCLUDE RV60AFZC.
    FORM USEREXIT_NUMBER_RANGE_INV_DATE USING US_RANGE_INTERN.
    Example: Number range from TVFK like in standard
    US_RANGE_INTERN = TVFK-NUMKI.
    *{   INSERT         KPDK904773                                        1
    *Block creation or cancellation of billing doc in closed period
    DATA : gv_gjahr TYPE bkpf-gjahr,
           gv_monat TYPE bkpf-monat,
           gv_poper TYPE t009b-poper,
           gv_bukrs TYPE t001-bukrs,
           lv_gjahr TYPE t001b-frye1,
           lv_monat TYPE t001b-frpe1,
           gv_oper  TYPE t001b-frpe1.
      CLEAR : gv_gjahr, gv_monat, gv_poper, gv_bukrs.
      gv_bukrs = vbrk-bukrs.
    IF NOT likp-wadat_ist IS INITIAL.
    *- First determine the Period of the Actual GI date.
      CALL FUNCTION 'FI_PERIOD_DETERMINE'
        EXPORTING
          i_budat              = likp-wadat_ist
          i_bukrs              = gv_bukrs
       IMPORTING
         E_GJAHR              = gv_gjahr
         E_MONAT              = gv_monat
         E_POPER              = gv_poper
       EXCEPTIONS
         FISCAL_YEAR          = 1
         PERIOD               = 2
         PERIOD_VERSION       = 3
         POSTING_PERIOD       = 4
         SPECIAL_PERIOD       = 5
         VERSION              = 6
         POSTING_DATE         = 7
         OTHERS               = 8.
          IF sy-subrc <> 0.
           MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                   WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ELSE.
            CLEAR : lv_gjahr, lv_monat.
            lv_gjahr = gv_gjahr.
            lv_monat = gv_monat.
    *- Once period is determine check whether Period is open or not for 'D' - Customer Account
            CALL FUNCTION 'FI_PERIOD_CHECK'
              EXPORTING
                I_BUKRS                = gv_bukrs
                i_gjahr                = lv_gjahr
                i_koart                = 'D'
                i_monat                = lv_monat
             IMPORTING
               E_OPER                 = gv_oper
             EXCEPTIONS
               ERROR_PERIOD           = 1
               ERROR_PERIOD_ACC       = 2
               INVALID_INPUT          = 3
               OTHERS                 = 4.
              IF sy-subrc <> 0.
               MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                       WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
              ELSE.
    *- Once period is determine check whether Period is open or not for 'S' - All G/L Accounts
                CALL FUNCTION 'FI_PERIOD_CHECK'
                EXPORTING
                  I_BUKRS                = gv_bukrs
                  i_gjahr                = lv_gjahr
                  i_koart                = 'S'
                  i_monat                = lv_monat
               IMPORTING
                 E_OPER                 = gv_oper
               EXCEPTIONS
                 ERROR_PERIOD           = 1
                 ERROR_PERIOD_ACC       = 2
                 INVALID_INPUT          = 3
                 OTHERS                 = 4.
                IF sy-subrc <> 0.
                  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                     WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
               ENDIF.
             ENDIF.
         ENDIF.
    ENDIF.
    *- Check Billing Date period is closed or not
    IF kom-fkdat is not initial.
      clear : gv_gjahr, gv_monat, gv_poper.
    *- First determine the Period of the Actual GI date.
      CALL FUNCTION 'FI_PERIOD_DETERMINE'
        EXPORTING
          i_budat              = kom-fkdat
          i_bukrs              = gv_bukrs
       IMPORTING
         E_GJAHR              = gv_gjahr
         E_MONAT              = gv_monat
         E_POPER              = gv_poper
       EXCEPTIONS
         FISCAL_YEAR          = 1
         PERIOD               = 2
         PERIOD_VERSION       = 3
         POSTING_PERIOD       = 4
         SPECIAL_PERIOD       = 5
         VERSION              = 6
         POSTING_DATE         = 7
         OTHERS               = 8.
          IF sy-subrc <> 0.
           MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                   WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ELSE.
            CLEAR : lv_gjahr, lv_monat.
            lv_gjahr = gv_gjahr.
            lv_monat = gv_monat.
    *- Once period is determine check whether Period is open or not for 'D' - Customer Account
            CALL FUNCTION 'FI_PERIOD_CHECK'
              EXPORTING
                I_BUKRS                = gv_bukrs
                i_gjahr                = lv_gjahr
                i_koart                = 'D'
                i_monat                = lv_monat
             IMPORTING
               E_OPER                 = gv_oper
             EXCEPTIONS
               ERROR_PERIOD           = 1
               ERROR_PERIOD_ACC       = 2
               INVALID_INPUT          = 3
               OTHERS                 = 4.
              IF sy-subrc <> 0.
               MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                       WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
              ELSE.
    *- Once period is determine check whether Period is open or not for 'S' - All G/L Accounts
                CALL FUNCTION 'FI_PERIOD_CHECK'
                EXPORTING
                  I_BUKRS                = gv_bukrs
                  i_gjahr                = lv_gjahr
                  i_koart                = 'S'
                  i_monat                = lv_monat
               IMPORTING
                 E_OPER                 = gv_oper
               EXCEPTIONS
                 ERROR_PERIOD           = 1
                 ERROR_PERIOD_ACC       = 2
                 INVALID_INPUT          = 3
                 OTHERS                 = 4.
                IF sy-subrc <> 0.
                  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                     WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
               ELSE.
                IF kom-fkdat4(2) <> likp-wadat_ist4(2).
                ENDIF.
               ENDIF.
             ENDIF.
         ENDIF.
    ENDIF.
    *}   INSERT
    ENDFORM.
          FORM USEREXIT_FILL_VBRK_VBRP                                  *
          This userexit can be used to fill fields in VBRK and VBRP     *
          Be aware, that at this time the work areas KUAGV KURGV        *
          KUWEV and KUREV are not filled.                               *
          This form is called from FORM VBRK_VBRP_FUELLEN.              *
    FORM USEREXIT_FILL_VBRK_VBRP.
    Example: change Tax country
    VBRK-LANDTX = T001-LAND1.
    ENDFORM.
    *eject

  • Automatic creation of WCD document

    Dear Experts,
    I am facing the below mentioned issue.
    While creating WCM objects in Maintenance Order, We can create it automatically if we choose tab shown in print screen.
    I am getting an option for Work Approval & Application But I am not getting an option of auto creation for WCD document.
    Did I miss any config?
    Thanks.

    Hello
    Please refer the below thread publish by Bhanu .P
    http://scn.sap.com/docs/DOC-46197
    Br
    Rakesh

  • Configure the automatic creation of accounting document while billing

    Hi,
    Could you telme where to find the customization where you configure such that
    triggering of automatic creation of accounting document takes place during billing itself.
    Regards
    anil.

    Hi Anil,
    In VOFA Document type in General contrlo is related to Accounting Document.If it is blank the system Automatically pics RV as accounting Document.
    If posting Block is Ticked then Automatic posting will not happens.
    You need to pass to Accounting in VF02 and release for accounting(Green Flag)
    Regards,
    Reddyy

  • Backgorund job for automatic creation of billing document

    Dear All
    Could you advise me on how to set up a bacground job for automatic creation of billing document?
    Thanks and regards,
    Sylwia

    In standard, you cannot generate automatic billing but you can set date and time so that you can generate invoices at the specified time in bulk.  The TCode to achieve this is VF06.
    thanks
    G. Lakshmipathi

  • Bacground job for automatic creation of billing document

    Dear All
    Could you advise me on how to set up a bacground job for automatic creation of billing document?
    Thanks and regards,
    Sylwia
    Edited by: S. KOWALSKA on Jan 12, 2009 10:12 AM

    Dear Sylwia
    Please dont post the same question in multiple threads.  You are receiving feedback in the other forum.  Check this link
    [Backgorund job for automatic creation of billing document   |Backgorund job for automatic creation of billing document;
    thanks
    G. Lakshmipathi

Maybe you are looking for

  • Creation of query

    Hi Friends, Consider the following scenario.Following are the stock values on each day in an ODS. <b>DATE     MATERIAL     QTY 1-Jan     A     100 1-Jan     C     1000 5-Jan     A     110 8-Jan     B     50 9-Jan     B     75 9-Jan     C     1100 11-

  • I have CS6 on one computer and CC on another, how do I change CS6 to CC

    I have Computer 1 loaded with CS6. I have Computer 2 with CC and membership loaded. How can I change Computer 1 with CS6 to join Computer 2 with the CC membership?

  • Why do I have less updated software after a repair?

    About a week ago, I spilled soup on my computer, so I took it to the Apple store and they repaired it, but they had to replace everything inside it so it's like I have a new computer now. Not only does my computer feel much heavier than it did before

  • Picture Colors Do Not Display Correctly

    Apple TV is very cool, however I noticed during a picture slideshow that colors seem off. For example, a red carpet that comes through on the TV as purple. I synced up my pics from my iPhoto library and have a great new Sony LCD TV. Wondering if anyo

  • PRE-ORDERING TIP

    My tip based on my experience with pre-ordering the iPhone 4 when it came out is that you USE THE APPLE SITE! A lot of people experienced issues with Verizon's pre-ordering site, including me. I immediately switched to Apple's site and pre-ordered 2