Reg. usage of BAPI_DOCUMENT_GETOBJECTDOCS

Dear Experts,
My requirement is that i need to pass OBJECTTYPE as 'MARA' if it is Material BOM and OBJECTKEY as material no.
and OBJECTTYPE as 'STPO_DOC' if it is BOM item and OBJECTKEY as GUIDX using in BOM Comparison to fetch Document Info Record attached to it. Can anyone explain me with sample code?
Thanks,
Ramesh Manoharan

Hi Raj,
Thanks for your immediate reply. But the link sent by you did not help me. I need to understand Material BOM and BOM item and also pass OBJECTTYPE as 'STPO_DOC' if it is BOM item and OBJECTTYPE as 'MARA' if it is Material BOM. How do i differentiate between Material BOM and BOM item?
Thanks,
Ramesh Manoharan

Similar Messages

  • Reg usage of XSLT Mapping

    Hi All,
    We need to build an interface from PI to some database using JDBC adapter to send out emails to business users of the exception records created in the table.please help in using the xslt mapping for this interface.
    Thanks in Advance,

    Hi,
    You can build your scenario as follows:
    1) If the emails have to be sent from PI then you need to get back a response from the database.....if this is failure message then initiate your send email process...the whole process can be implemented using a BPM: Source ---> PI ---> JDBC --->PI ---> Email
    2) You need to use a receiver mail adapter to send emails
    3) Refer this blog of michal in which it is mentioned how to use the XSLT mapping and configuration for sending the emails:
    /people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
    You can also refer: http://www.riyaz.net/blog/xipi-sending-emails-using-xi-mail-adapter/
    For more clarification you can also refer my answer in this thread:
    Re: xml in mail
    The XSLT mapping that you need will be only in the PI ---> Email scenario...
    Make sure that you download the desired email structure from service market place before you start with the scenario.......do let me know if my answer helps.
    Regards,
    Abhishek.

  • Reg:usage of 7.1v NWDS

    Hi experts
    i am working now on 7.1v NWDS .But when i try to deploy it is giving below error.
    error :Firefox can't establish a connection to the server at h2syss.vctl.ad.
    More Over i have specified the properties under window->preferences->SAP AS JAVA .
    But when i have given instance name and instance No .Register Sap System.
    In the table column it is giving two instance host and no.
    that is h2syss 1
              h2syss.vctl.ad 0.
    can any one help me out.
    How to resolve this issue.
    Thanks & Regards
    Deepika

    Hi Deepika,
    The possible error are :
    1. The user id and password you are using may not have deploying rights.
    2. The Network might be fluctuating one.
    3. The Instance could have changed ie the server would have restarted and port could have changed.
    It is always suggested that to add server instance just before you deploy and after the server has taken a restart.
    Regards
    Piyas Kumar Das

  • Reg. usage of FM "SO_NEW_DOCUMENT_ATT_SEND_API1" in background

    Dear Experts,
    I am using the FM "SO_NEW_DOCUMENT_ATT_SEND_API1" to send the PDF attachment data via Outlook Mail. Here i need to pass "Commit work" = 'X'. It is working fine when i execute in Dialog mode / Foreground.
    But when i execute in Background / Batch Mode, i get a short Dump as "Pre-commit Check required". 
    When i am not setting the parameter "Commit work" = 'X', i get the following message in Tcode SOST "Still no entry in queue".
    Is there any other way i can solve the above issue? Kindly help me to resolve the above issue in background.
    Any help would be appreciated.
    Regards,
    Ramesh Manoharan

    Hi,
    Kindly find the below code going for dump when run in Background:  
    LOOP AT lit_pdf INTO lwa_pdf.
          TRANSLATE lwa_pdf USING '~'.
          CONCATENATE lfd_buffer lwa_pdf INTO lfd_buffer.
        ENDLOOP.
        TRANSLATE lfd_buffer USING '~'.
        REFRESH: lit_record.
        DO.
          lwa_record = lfd_buffer.
          APPEND lwa_record TO lit_record.
          CLEAR lwa_record.
          SHIFT lfd_buffer LEFT BY 255 PLACES.
          IF lfd_buffer IS INITIAL.
            EXIT.
          ENDIF.
        ENDDO.
        git_objbin[] = lit_record[].
        REFRESH lit_record.
    Create Message Body Title and Description
        gwa_objtxt = lfd_pspid.
        APPEND gwa_objtxt TO git_objtxt.
        CLEAR gwa_objtxt.
        CLEAR: gwa_doc_chng, lfd_lines_txt, lfd_lines_bin.
        gwa_doc_chng-obj_name = 'Project ID'.
        gwa_doc_chng-expiry_dat = sy-datum + 10.
        gwa_doc_chng-obj_descr = 'Project ID'.
        gwa_doc_chng-sensitivty = 'F'.
        gwa_doc_chng-proc_type = 'R'.
        gwa_doc_chng-proc_name = sy-repid.
        DESCRIBE TABLE git_objtxt LINES lfd_lines_txt.
        READ TABLE git_objtxt INTO gwa_objtxt INDEX lfd_lines_txt.
        IF sy-subrc IS INITIAL.
          gwa_doc_chng-doc_size = ( lfd_lines_txt - 1 ) * 255 + STRLEN( gwa_objtxt ).
        ENDIF.
    *Main Text
        CLEAR gwa_objpack.
        gwa_objpack-transf_bin = ' '.
        gwa_objpack-head_start = 1.
        gwa_objpack-head_num = 0.
        gwa_objpack-body_start = 1.
        gwa_objpack-body_num = lfd_lines_txt.
        gwa_objpack-doc_type = 'RAW'.
        APPEND gwa_objpack TO git_objpack.
        CLEAR gwa_objpack.
    *Attachment(PDF Attachment)
        gwa_objpack-transf_bin = 'X'.
        gwa_objpack-head_start = 1.
        gwa_objpack-head_num = 1.
        gwa_objpack-body_start = 1.
        DESCRIBE TABLE git_objbin LINES lfd_lines_bin.
        READ TABLE git_objbin INTO gwa_objbin INDEX lfd_lines_bin.
        IF lfd_lines_bin > 0.
          gwa_objpack-doc_size = lfd_lines_bin * 255.
          gwa_objpack-body_num = lfd_lines_bin.
        ENDIF.
        gwa_objpack-doc_type = 'PDF'.
        gwa_objpack-obj_name = 'Project ID'.
        gwa_objpack-obj_descr = 'Project_ID.PDF'.
        APPEND gwa_objpack TO git_objpack.
        CLEAR gwa_objpack.
        READ TABLE git_usr21 INTO gwa_usr21
                WITH KEY bname = lwa_usr_spool-bname
                          BINARY SEARCH.
        IF sy-subrc IS INITIAL.
          READ TABLE git_adr6 INTO gwa_adr6
                WITH KEY addrnumber = gwa_usr21-addrnumber
                         persnumber = gwa_usr21-persnumber
                         BINARY SEARCH.
          IF sy-subrc IS INITIAL.
            gwa_reclist-receiver = gwa_adr6-smtp_addr.
            gwa_reclist-rec_type = 'U'.
            gwa_reclist-com_type = 'INT'.
            APPEND gwa_reclist TO git_reclist.
            CLEAR gwa_reclist.
          ENDIF.
        ENDIF.
        IF NOT git_reclist[] IS INITIAL.
    *SAPoffice: Send new document with attachments using RFC
          CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
            EXPORTING
              document_data              = gwa_doc_chng
              put_in_outbox              = 'X'
              commit_work                = 'X'
            IMPORTING
              new_object_id              = lwa_obj_id
            TABLES
              packing_list               = git_objpack
              contents_bin               = git_objbin
              contents_txt               = git_objtxt
              receivers                  = git_reclist
            EXCEPTIONS
              too_many_receivers         = 1
              document_not_sent          = 2
              document_type_not_exist    = 3
              operation_no_authorization = 4
              parameter_error            = 5
              x_error                    = 6
              enqueue_error              = 7
              OTHERS                     = 8.
             REFRESH: git_objpack, git_objbin, git_objtxt, git_reclist,
                 lit_pdf.
             CLEAR: gwa_doc_chng, lfd_buffer.
      ENDIF.
    Any help to resolve the Issue ?
    Regards,
    Ramesh Manoharan
    Edited by: ramesh.manoharan on Apr 7, 2010 12:39 PM

  • REG: Usage of PGP(pretty good privacy) encryption

    Hi all,
                 I need to use PGP encryption in XI. Can u suggest is it possible or not. If yes can you tell me how can it be done.

    hi,
    PGP Encryption is used to support the transmission of sensitive data to / from third party systems via XI.
    Adapter modules are developed to encrypt the file using PGP.
    We had a similar requirement where we used PGP encryption.The module was developed using Cryptix OpenPGP which is a Java implementation of the OpenPGP standard.When the module is called in the adapter, it uses the PGP key provided by the party that will receive the encrypted message. This module should be called prior to calling the Sap adapter
    Logic Flow/Processing:
    1.Read the XML payload and message for getting the needed data.
    2.Read the key to be used in the encryption and log the key to be used and the beginning of the encryption.
    3.Call the PGP encryption and compression method.
    4.Log whether encryption has been successful.
    5.Set as payload the message content encrypted, and the principal data.
    6.If any error occurs, logs an exception in PGP adapter module and the error reason.
    7.Return the message.
    regards
    kummari

  • Reg usage of break point in debug mode

    Dear experts,
       I want to know how to go to a particular line in debugging mode. Suppose for example, if a program contains main program and includes.  I want to go to a particular line in debugging mode in the includes. How can i go? kindly help me.
    tks

    Hi Prabhakar,
    Using break points you can stop the execution control at that break point.
    If you use only F5, F6, F7 for debugging you don't need of break points.
    But if you want to stop at particular statement while running the report (using F8) you should use Break Point. Ofcourse you can use watchpoints also.
    Watchpoint --- If you put watch point execution control stops at the particular statement when the value of watchpoint is reached.
    Reward If Helpful.
    Regards
    Sasidhar Reddy Matli.

  • Reg Usage of Index

    Hi PPL,
    Can anybody tell me how to use the database table Indexes in the programs?
    Regards,
    Kevin Nick.

    Hi...
    just see these links......
    Re: select statement : Secondary index 
    how to use secondary index
    http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21eb2d446011d189700000e8322d00/content.htm
    http://www.sap-img.com/abap/quick-note-on-design-of-secondary-database-indexes-and-logical-databases.htm
    SELECT QUERY  BASED ON SECONDARY INDEX
    Reward points if useful,,,,,,
    Suresh......

  • Reg Usage of ODS Table in Transformation

    Hai All,
                I am new to SAP NetWeaver BI. Can i use the ODS Table in the transformation rules ?
    Is this the right approach  or not ? My requirement is i have  to poulate some infomration into new ODS depending on the data which is available in othere ods table.
    Regards
    Prashanth

    Hi Prashant,
    Please refer to the sources below to understand Transformations...
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/EN/e3/e60138fede083de10000009b38f8cf/frameset.htm">http://help.sap.com/saphelp_nw2004s/helpdata/EN/e3/e60138fede083de10000009b38f8cf/frameset.htm</a>
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/EN/e3/e60138fede083de10000009b38f8cf/frameset.htm">http://help.sap.com/saphelp_nw2004s/helpdata/EN/e3/e60138fede083de10000009b38f8cf/frameset.htm</a>
    Also refer to this white paper in SDN on Transformations
    <a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6090a621-c170-2910-c1ab-d9203321ee19">https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6090a621-c170-2910-c1ab-d9203321ee19</a>
    To ensure good performance, use the Start or End Routine to execute such lookups on DSO tables.
    Regards,
    Shrikant

  • Reg usage of HttpS

    is it okay to use Https://localhost as parameter in URL class insted of using a HttpSURLConnection will both work in the same manner if not how to use HttpsURLConnection class?
    thanks in advance

    Hi Chandra Shekar,
    standard text with variable
    SO10 doubt : standard Text
    Regards,
    Sravanthi

  • Reg:usage of table in popup window

    hi all
    i am using pop up window for opening very functionality of a button .but when i am using table ui element with type as input fields inside a pop up .when i click on button( details) this pop up is opening  with table ui element but in this table as i want to enter experience details of an employee in this table at run time is my scenario.here the problem is this table though it is in the  edit mode first row  , it not allowing to enter the values in it.(cardinality i have changed to 1:n).
    2)how to make all the rows of a table into input fields even though i have taken them as a input fields it showing in display mode .
    can any one share ur  knowledge on this
    regards
    Deepika

    Hi,
    Are you using normal table UI element or ALV.
    If you are using the normal table, check the READ_ONLY property should be unchecked for TABLE property.
    Also check at the INPUT edtior level.
    Regards,
    Lekha.

  • Reg:usage of radio buttons

    Hi all
    where i need to display fields depending on selection of radio button.
    i am using three radio buttons when i select first radio button i need to display one view with some fields and  when i select sec it need to display different fields in the secview page ,can any one guide me how to reslove this task
    Thanks in advance
    Deepika
    Edited by: deepika_indian on Feb 12, 2011 1:20 PM

    Hi Deepika,
    1.Create 3 seperate views, create 3 transparent containers and create ViewUIelement container in every view and place it in TC.
    2 create a Action for click of ur radio button , in the OnAction property of ur radio button , switch to the next view
    for navigation , u do like this :
    1 Outbound Plug: Define outbound in ur initial view , tosec for ur 2nd view, to 3rd like that.
    2 create Inbound plug for ur destination views , suppose , fromfirst, form sec
    3 now in OnActionMethod of ur radio , based on your condition fire the plug
    wd_this->fire_tosec_plg( ) .
    Hope it might helps you...
    Thanks,
    Kris.
    Edited by: kissnas on Feb 14, 2011 6:19 AM

  • Reg : usage of standard Texts(SO10)

    Hi all of u,
      I want to use standard texts ,which were created under Tcode SO10, alone to display output without using them in any of the script or smartforms.Also i want to nw that , is it possible to use Variables inside standard text,which r really exist in report,report is through which i want to make use of ths Texts .The variable are / shuld be  local to this program...
    Kindly guide me ....
    This will simplifies my work ...
    Thanks in advance,
    Regards,
    Chandra.V

    Hi Chandra Shekar,
    standard text with variable
    SO10 doubt : standard Text
    Regards,
    Sravanthi

  • Hi.... RSA5 n RSA6

    hi all,
      In LO , reg usage of both the tcodes iam confused..
    A/c to my understanding -- we use rsa6 to trensfer the datasources and rsa5 to check whether the ds is transffred r not ..
    plz confirm ...
    cheers -
    sruthii

    Hi Sruthi,
    RSA5 --> To Install Data Sourcess from Bussiness Content
    In this step, you transfer and activate the DataSources delivered by SAP as well as partner DataSources delivered in your own namespace where applicable.
    RSA6 -->> Sub sequent process or Postprocessing of DataSources.
    In this section, you find out how to subsequently process DataSources or application component hierarchies.
    To adjust existing DataSources to your requirements, you edit them in this step and transport them from a test system into a productive system.
    You can also use this procedure to post-process the application component hierarchy.
    hope it helps,
    u can also check this link
    RSA5,RSA6
    award points if useful.
    regards,
    Archna

  • Usage of the xp20:matches() - String  function -reg

    Hi,
    Our current requirement is that if we receive the message that matches the pattern (Ie input starting with A to L) both inclusive(for eg : A123 , B567,... ,L890),we need to perform some routing in the mediator depending upon the message. I have tried to make use of the xp20:matches() function for checking the input, as per the dev guide.
    Sample code used in filter expression in mediator:
    <condition language="xpath">
    <expression>xpath20:matches($in.request/cb1:singleString/cb1:input,'^[A-L]*$')</expression>
    </condition>
    Is there anything wrong in the usage of the matches function, as there seems to be some issues in the filter expression.
    All the other logical functions and Startswith function seems to work well.
    Any pointers would help.
    Thanks
    Swathy

    Hi there,
    If you want to match any word which starts with A-L character then use ^[A-L]
    If you want to have exactly three numbers after first character (and nothing more) use ^[A-L][0-9]{3}$
    Regards,
    Milan
    Edited by: 849823 on Apr 5, 2011 12:59 AM

  • Reg payment as per usage decision

    Dear all,
    please give advice regarding the 3 scenarios
    scenario 1.:    Sent material for subcontracter for making 10 materials , stock received 10 numbers out of which in usage decision we have put 8 in unrestricted and 2 in block, during invoice in MIRO we should get payment for 8 numbers only.
    Scenario 2 : Sent material for subcontracter for making 10 materials , stock received 10 numbers out of which in usage  decision  we have put 8 numbers in unrestricted and 2 in scrap, in MIRO we should get value where we deduct for 2 numbers and also the raw material cost for 2 nos.

    Hi
    Use User Exit :LMR1M001
    Refer links:
    Re: miro for unrestricted use qty only
    This is only one solution
    Regards
    Sujit

Maybe you are looking for