Security tables to find T-code, object, field and value combination..

Hello,
I have requirement where I have to scan a role in SAP which has certain combination
of T-Code, Object, Field and value.
For example:
I need to find all roles in SAP which has following combination of T-Code, Object, Field and Value:
T-CODE..........  Object...............Field......Value
F-02...........F_BKPF_BUK......... ACTVT.......01
What are the tables on which I can write query to fetch these kind of details ?
Thanks.
Regards,
Rajesh.

Hello,
Please see this: [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e944e133-0b01-0010-caa2-be2cb240f657].
Hope this helps.
Regards.

Similar Messages

  • Declare the internal table with only one 10 character  field and use

    Hi,
    I want to declare the internal table with only one 10 character  field and use.
    Jaya

    Hi,
    Go ahead. U can declare IT with only one field
    Example:
    data: begin of zcustlist occurs 1000,
                   custmer(10)  type c,
             end of zcustlist.
    Narendra Reddy.
    Edited by: Narendra Reddy C on Aug 8, 2008 11:39 AM

  • Need to find 'Main Reference Object' field in idoc CRMXIF_ORDER_SAVE_M02

    Hi experts,
    pic link: http://img56.imageshack.us/my.php?image=screenhunter001fv3.jpg
    I cant find "Main Ref. Object" field in Idoc CRMXIF_ORDER_SAVE_M02...
    It is under Service Order created in tcode CRMD_ORDER...
    Service Order -> Transaction Data -> Objects -> the most left column...
    Does anybody know where that field is located or is there other way to load that field?
    Thanks.

    Hi experts,
    pic link: http://img56.imageshack.us/my.php?image=screenhunter001fv3.jpg
    I cant find "Main Ref. Object" field in Idoc CRMXIF_ORDER_SAVE_M02...
    It is under Service Order created in tcode CRMD_ORDER...
    Service Order -> Transaction Data -> Objects -> the most left column...
    Does anybody know where that field is located or is there other way to load that field?
    Thanks.

  • Find element by object styles  and copy it

    Hello, I would like to create a script.
    Find element by object styles :
    Outside of document, I create on block with the object style "reference". This will be unique.
    After selected, I want to put it on CLIPBOARD or just do a copy.
    If selected by object styles isn't possible, how i can make a id on my element?
    Can you help me?
    Thancks a lot!

    Thank a lot!
    So, I have a find/change with a grep code.
    I copy an element, and I launch the search. My requete says "when you find this, paste".
    I use a javascript which do all my find/change like this :
    var myTextFrame = app.selection[0];
    var myStory = myTextFrame.parentStory;
    app.loadFindChangeQuery ('PuceSimple_enPuceCouleur_Courant', SearchModes.grepSearch);
    myStory.changeGrep();
    This work very well, so If I select my element, I copy, I select my texframe, I run the script all is OK.
    But I would like that script do this :
    I select my texframe and run my script : it copy element (it find by label or object style) and run the find/change grep.
    I put it some shots :
    1 : you see that my element is selected, it has a object style name, a label name. I think that it will be outside the page. I copy it.
    2. I run the find/change
    3 it's work !
    Do you understant what I want to do in scripting ?

  • What's the tables to find the relationship between OPT and SUV

    Dear CRMers,
      Now, we're trying to find the tables to get the Survey and Answer of Survey to certain opportunity. Any one could give me the details. Any suggestions are appreciated.
    Best Regard
    Gerald

    Hi Gerald,
    Below is the list of tables which may be useful for both lead and Opportunity, but maintenance of this table is not possible through SM30, You can change the maintenance status in the ABAP Dictionary (SE11).
    CRMC_SVY_LEAD
    CRMC_SVY_LEAD_T
    CRMC_SVY_OPPT
    CRMC_SVY_OPPT_T
    These below tables store the values and also the questionnaire id.
    KLAH: Attribute Set Name, ID
    INOB: Object ID, BP Number
    KSSK: Object ID, Attribute set ID
    CABN: Attribute ID and name
    CAWN: Attribute name and values
    AUSP: BP GUID, Attribute Name, Value, Object ID
    CRM_SVY_DB_SV and CRM_SVY_DB_SVS. These tables contain the actual survey response but encrypted in XML format.
    Hope the above info may help you.
    Regards
    SRIM

  • Case Management - Table to find out relation between Case and Activity

    Hi.
    I do search the SDN for the same quesiton, I found one but it was not answered by a single person. So let me ask it again:
    I am working on an interface in CRM that will create the activity and link it to the open case.
    I can get the existing case GUID and information from table CRMD_CMG_CASE_AT .
    I can get the GUID as a return parameter when activity will be created using BAPI.
    But how can I link the activity to the case.
    1. Which table is having relation between both case and activity?
    2. What class or BAPI will be used to link created activity to existing case?
    Thanks in advance.
    Hitesh

    done

  • Tables for production order number for material and Batch combination

    Dear Experts,
    Please suggest the table names for finding the production order for material and batch combination .
    Thanks in advance for your help...
    Best regards
    Nitishj

    Dear
    Please check in  AFPO-CHARG
    AFPO          Order Item Detail -Batch Number -CHARG
    AFFW         Confirmations -- Goods Movements w
    AFRD          Confirmations -- Defaults for Collective Confirmation
    AFRH          Confirmations -- Header Info for Confirmation
    Regards
    JH

  • Name of the table to find Tax code for different country....?

    Hi,,
    Can some help me to know the tax code for all the country(DE,CA,FR,GB,SE)...?
    thanks,
    praveen

    HI,
    the tax codes are maintained for a country in T-code FTXP and stored in table T007A. Each country is assigned to a tax scheme (table T005). Each comp. code is assigned to a country (table T001), so the tax scheme from table T005 is indirect assigned to a comp. code.
    BR Christian

  • Order by Fields and Values

    Hello All,
    I am not having any success with populating data a certain way an end-user requests. I am not sure that this is possible to populate from end-users specs.
    Every Department_Division group should also have the Section_Head = 'Y', which is Descending populate first. Only one Section_Head = 'Y' will exists for each Department_Division. But if it does not exists. Next the Classification_Type values should populate in this order 'EL', 'UNC' then 'CL'. The 'CL' value should not display. Here is my select statement below.
    select
    pk_allotment_id,
    fk_department_group_descr || '/' || fk_department_descr as Department_Division,
    FK_DEPARTMENT_ID as Acount_No,
    FUND_NUMBER as Fund,
    FK_JOBCODE_ID as Class_Code,
    fk_jobcode_descr|| ' '||nvl2(term,'('||term||')',null) as Title,
    number_of_positions as Number_of_Positions,
    (CASE classification_type
         WHEN 'CL' THEN ''
         WHEN 'EL' THEN '(ELECTED)' 
         WHEN 'UNC' THEN '(UNCLASSIFIED)'
         END) as Classification_Type,
    SECTION_HEAD as Section_Head,
    FUND_TYPE as Fund_Type
    from TBL_ALLOTMENT
    where fund_type = 'SP'
    and isdeleted <> 'Y'
    order by department_division asc, title asc, section_head desc, DECODE(classification_type, '(ELECTED)', '(UNCLASSIFIED)', '') ASCAny help is appreciated and thanks for reading. Here is an example of how the data should populate.
    Pk Allotment Id Department Division                                 Account No Fund Class Code Class Title                             Number Of Positions Classification Type Section Head Fund Type
    287 ANIMAL CONTROL CENTER/ANIMAL CONTROL CENTER 800004 014 550920 CITY JUDGE 10 EL N SP
    286 ANIMAL CONTROL CENTER/ANIMAL CONTROL CENTER 800004 242 100133 FINANCIAL ANALYST 25 CL N SP
    285 ANIMAL CONTROL CENTER/ANIMAL CONTROL CENTER 800004 012 113105 STOCK CLERK I 25 CL N SP
    264 CITY COURT/CITY COURT VOLUNTEERS IN THE COURT 2046010 011 500005 MAYOR-PRESIDENT 25 EL Y SP
    272 CITY COURT/CITY COURT VOLUNTEERS IN THE COURT 2046010 014 300015 SECRETARY TO THE ASST CAO'S 5 UNC N SP
    260 CITY COURT/CITY COURT VOLUNTEERS IN THE COURT 2046010 014 105450 DETENTION FACILITY MANAGER 5 CL N SP
    262 CITY COURT/CITY COURT VOLUNTEERS IN THE COURT 2046010 014 105310 HOUSING PROGRAM SPECIALIST 10 CL N SP
    261 CITY COURT/CITY COURT VOLUNTEERS IN THE COURT 2046010 015 108755 TRAINING SPECIALIST 5 CL N SP
    265 COMMUNITY DEVELOPMENT/COMMUNITY AND ECONOMIC DEVELOPMENT 6114586 011 550908 WARD CONSTABLE (2010-2012) 20 EL Y SP
    266 COMMUNITY DEVELOPMENT/COMMUNITY AND ECONOMIC DEVELOPMENT 6114586 011 550920 CITY JUDGE 10 EL N SP
    273 COMMUNITY DEVELOPMENT/COMMUNITY AND ECONOMIC DEVELOPMENT 6114586 014 550920 CITY 10 EL N SP
    271 COMMUNITY DEVELOPMENT/COMMUNITY AND ECONOMIC DEVELOPMENT 6114586 014 350048 ASSISTANT EMS ADMINISTRATOR (2012-2014) 5         UNC N SP
    274 COMMUNITY DEVELOPMENT/COMMUNITY AND ECONOMIC DEVELOPMENT 6114586 014 320198 ATTORNEY B *(12) PART TIME 5                         UNC  N SP
    270 COMMUNITY DEVELOPMENT/COMMUNITY AND ECONOMIC DEVELOPMENT 6114586 014 320180 ATTORNEY I (30-40HOURS) 20 UNC N SP
    268 COMMUNITY DEVELOPMENT/COMMUNITY AND ECONOMIC DEVELOPMENT 6114586 012 310065 COMMUNITY OUTREACH COORDINATOR 5                         UNC N SP
    269 COMMUNITY DEVELOPMENT/COMMUNITY AND ECONOMIC DEVELOPMENT 6114586 011 300092 DEPUTY CORONER 2 UNC N SP
    275 COMMUNITY DEVELOPMENT/COMMUNITY AND ECONOMIC DEVELOPMENT 6114586 014 184116 ANIMAL CONTROL OFFICER I 5 CL N SP
    276 COMMUNITY DEVELOPMENT/COMMUNITY AND ECONOMIC DEVELOPMENT 6114586 012 114235 CRIME SPECIALIST  10 CL N SP
    277 COMMUNITY DEVELOPMENT/COMMUNITY AND ECONOMIC DEVELOPMENT 6114586 011 120103 LPN (40 HRS./WK.) 5 CL N SP
    263 OFFICE OF THE MAYOR-PRESIDENT/MP-COMM CENTERS-LEO S BUTLER COMM CENTER 4070206 021 101570 ASSISTANT URBAN DEVELOPMENT DIRECTOR   10 CL N SPIf this does not display correct I can email text file and sample data.
    Edited by: Charles A on Aug 25, 2010 9:02 AM

    Here are the results that were populated Warren. I have commented out a few fields so the data can be a little more viewable.
    select --pk_allotment_id,
           fk_department_group_descr || '/' || fk_department_descr as Department_Division,
           --FK_DEPARTMENT_ID as Acount_No,
           --FUND_NUMBER as Fund,
           --FK_JOBCODE_ID as Class_Code,
           fk_jobcode_descr|| ' '||nvl2(term,'('||term||')',null) as Title,
           --number_of_positions as Number_of_Positions,
           (CASE classification_type WHEN 'CL' THEN ''
                                     WHEN 'EL' THEN '(ELECTED)' 
                                     WHEN 'UNC' THEN '(UNCLASSIFIED)'
            END) as Classification_Type,
           SECTION_HEAD as Section_Head
           --FUND_TYPE as Fund_Type
      from TBL_ALLOTMENT
    where fund_type = 'SP'
       and isdeleted <> 'Y'
    order by department_division asc;
             --title asc,
             --section_head desc,
             --DECODE(classification_type, '(ELECTED)', '(UNCLASSIFIED)', '') ASC,
             decode(SECTION_HEAD,'Y',1,decode(classification_type,'EL',2,'UNC'3','CL',4,5)) asc;
    ANIMAL CONTROL CENTER/ANIMAL CONTROL CENTER                                     CITY JUDGE                                                  (ELECTED)     N
    ANIMAL CONTROL CENTER/ANIMAL CONTROL CENTER                                     STOCK CLERK I                                                           N
    ANIMAL CONTROL CENTER/ANIMAL CONTROL CENTER                                     FINANCIAL ANALYST (2010-2012)                                          N
    CITY COURT/CITY COURT VOLUNTEERS IN THE COURT                                     DETENTION FACILITY MANAGER                                           N
    CITY COURT/CITY COURT VOLUNTEERS IN THE COURT                                     SECRETARY TO THE ASST CAO'S (2010-2012)            (UNCLASSIFIED) N
    CITY COURT/CITY COURT VOLUNTEERS IN THE COURT                                     HOUSING PROGRAM SPECIALIST                                           N
    CITY COURT/CITY COURT VOLUNTEERS IN THE COURT                                     MAYOR-PRESIDENT                                                   (ELECTED)     Y
    CITY COURT/CITY COURT VOLUNTEERS IN THE COURT                                     TRAINING SPECIALIST                                           N
    COMMUNITY DEVELOPMENT/COMMUNITY AND ECONOMIC DEVELOPMENT     LPN (40 HRS./WK.)                                                           N
    COMMUNITY DEVELOPMENT/COMMUNITY AND ECONOMIC DEVELOPMENT     CITY JUDGE                                                   (ELECTED)     N
    COMMUNITY DEVELOPMENT/COMMUNITY AND ECONOMIC DEVELOPMENT     WARD CONSTABLE (2010-2012)                                  (ELECTED)     Y
    COMMUNITY DEVELOPMENT/COMMUNITY AND ECONOMIC DEVELOPMENT     CRIME SPECIALIST                                                           N
    COMMUNITY DEVELOPMENT/COMMUNITY AND ECONOMIC DEVELOPMENT     ATTORNEY B *(12) PART TIME                                   (UNCLASSIFIED) N
    COMMUNITY DEVELOPMENT/COMMUNITY AND ECONOMIC DEVELOPMENT     ASSISTANT EMS ADMINISTRATOR (2012-2014)           (UNCLASSIFIED) N
    COMMUNITY DEVELOPMENT/COMMUNITY AND ECONOMIC DEVELOPMENT     ATTORNEY I (30-40HOURS)                                   (UNCLASSIFIED) N
    COMMUNITY DEVELOPMENT/COMMUNITY AND ECONOMIC DEVELOPMENT     DEPUTY CORONER                                                   (UNCLASSIFIED) N
    COMMUNITY DEVELOPMENT/COMMUNITY AND ECONOMIC DEVELOPMENT     COMMUNITY OUTREACH COORDINATOR                   (UNCLASSIFIED) N
    COMMUNITY DEVELOPMENT/COMMUNITY AND ECONOMIC DEVELOPMENT     ANIMAL CONTROL OFFICER I                                                N
    COMMUNITY DEVELOPMENT/COMMUNITY AND ECONOMIC DEVELOPMENT     CITY JUDGE                                                    (ELECTED)     N
    OFFICE OF THE MAYOR-PRESIDENT/MP-COMM CENTERS-LEO S BUTLER COMM CENTER     ASSISTANT URBAN DEVELOPMENT DIRECTOR      NHere is how I would like the results to populate if possible.
    ANIMAL CONTROL CENTER/ANIMAL CONTROL CENTER                                     CITY JUDGE                                                  (ELECTED)     N
    ANIMAL CONTROL CENTER/ANIMAL CONTROL CENTER                                     FINANCIAL ANALYST (2010-2012)                                          N
    ANIMAL CONTROL CENTER/ANIMAL CONTROL CENTER                                     STOCK CLERK I                                                           N
    CITY COURT/CITY COURT VOLUNTEERS IN THE COURT                                     MAYOR-PRESIDENT                                                   (ELECTED)     Y
    CITY COURT/CITY COURT VOLUNTEERS IN THE COURT                                     SECRETARY TO THE ASST CAO'S (2010-2012)            (UNCLASSIFIED) N
    CITY COURT/CITY COURT VOLUNTEERS IN THE COURT                                     DETENTION FACILITY MANAGER                                           N
    CITY COURT/CITY COURT VOLUNTEERS IN THE COURT                                     HOUSING PROGRAM SPECIALIST                                           N
    CITY COURT/CITY COURT VOLUNTEERS IN THE COURT                                     TRAINING SPECIALIST                                           N
    COMMUNITY DEVELOPMENT/COMMUNITY AND ECONOMIC DEVELOPMENT     WARD CONSTABLE (2010-2012)                                  (ELECTED)     Y
    COMMUNITY DEVELOPMENT/COMMUNITY AND ECONOMIC DEVELOPMENT     CITY JUDGE                                                   (ELECTED)     N
    COMMUNITY DEVELOPMENT/COMMUNITY AND ECONOMIC DEVELOPMENT     CITY JUDGE                                                   (ELECTED)     N
    COMMUNITY DEVELOPMENT/COMMUNITY AND ECONOMIC DEVELOPMENT     ASSISTANT EMS ADMINISTRATOR (2012-2014)           (UNCLASSIFIED) N
    COMMUNITY DEVELOPMENT/COMMUNITY AND ECONOMIC DEVELOPMENT     ATTORNEY B *(12) PART TIME                                   (UNCLASSIFIED) N
    COMMUNITY DEVELOPMENT/COMMUNITY AND ECONOMIC DEVELOPMENT     ATTORNEY I (30-40HOURS)                                   (UNCLASSIFIED) N
    COMMUNITY DEVELOPMENT/COMMUNITY AND ECONOMIC DEVELOPMENT     COMMUNITY OUTREACH COORDINATOR                   (UNCLASSIFIED) N
    COMMUNITY DEVELOPMENT/COMMUNITY AND ECONOMIC DEVELOPMENT     DEPUTY CORONER                                                   (UNCLASSIFIED) N
    COMMUNITY DEVELOPMENT/COMMUNITY AND ECONOMIC DEVELOPMENT     ANIMAL CONTROL OFFICER I                                           N
    COMMUNITY DEVELOPMENT/COMMUNITY AND ECONOMIC DEVELOPMENT     CRIME SPECIALIST                                                           N
    COMMUNITY DEVELOPMENT/COMMUNITY AND ECONOMIC DEVELOPMENT     LPN (40 HRS./WK.)                                                           N
    OFFICE OF THE MAYOR-PRESIDENT/MP-COMM CENTERS-LEO S BUTLER COMM CENTER     ASSISTANT URBAN DEVELOPMENT DIRECTOR      N

  • Security tables...

    Hello,
    I have requirement where I have to scan a role in SAP which has certain combination
    of T-Code, Object, Field and value.
    For example:
    I need to write a query which will find all roles in SAP which has following combination of T-Code, Object, Field and Value:
    T-CODE.......... Object...............Field......Value
    F-02...........F_BKPF_BUK......... ACTVT.......01
    What are the tables on which I can write query to fetch these kind of details ?
    Thanks.
    Regards,
    Rajesh.

    When you talk about
    T-CODE.......... Object...............Field......Value
    F-02...........F_BKPF_BUK......... ACTVT.......01  ,
    I understand that you need the values that are maintained for a tcode in su24.
    Please refer to table USOBT_C for these values.
    sorry, I guess I interpreted the question wrongly earlier. You can refer to SUIM -> Roles by complex selection criteria for that.. but that also will not give a correct idea about the tcode if that is actually checking for that object in its program..
    Edited by: Hemant Raj on Jun 17, 2008 3:05 PM

  • How to implement search help instead of match code objects table in program

    Hi,
    We are now in upgrade process of code remediation ( From 4.6c to EC6.0).
    We have created search helps instead of matchcode object table. This match code object table M_VMVLC has been deleted
    in EC6.0.  And search help VMVLC is available.
    In the program, they have used <M_VMVLC > -<fieldname> i.e. <tablename> - <fieldname> in declaring parameters,
    in the 'into' clause of select statement, in the 'from' clause of select statement, in the 'write' statement.
    I want to know how to replace this matchcode object table with the search help in the program.
    Thanks,
    Abirami.

    Hi,
    Check the link
    http://help.sap.com/saphelp_nw04/helpdata/EN/cf/21ee2b446011d189700000e8322d00/content.htm
    Regards,
    Amit

  • How to find bar codes and mails to send clients in smartforms

    HI friends,
        How to find bar codes in smartforms and also how to send mail to the client. I have developed one object in smartforms, but i don't know how to send maill to the client. Pls help me........................
    Thanks in Advance.
    Saradhi.

    Hi!
    Here is the code to send the Smartform to mail as PDF attachment.
    *& Report ZTEST_PDF_MAIL
    REPORT ZTEST_PDF_MAIL.
    Internal Table declarations
    DATA: I_OTF TYPE ITCOO OCCURS 0 WITH HEADER LINE,
    I_TLINE TYPE TABLE OF TLINE WITH HEADER LINE,
    I_RECEIVERS TYPE TABLE OF SOMLRECI1 WITH HEADER LINE,
    I_RECORD LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
    Objects to send mail.
    I_OBJPACK LIKE SOPCKLSTI1 OCCURS 0 WITH HEADER LINE,
    I_OBJTXT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
    I_OBJBIN LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
    I_RECLIST LIKE SOMLRECI1 OCCURS 0 WITH HEADER LINE,
    Work Area declarations
    WA_OBJHEAD TYPE SOLI_TAB,
    W_CTRLOP TYPE SSFCTRLOP,
    W_COMPOP TYPE SSFCOMPOP,
    W_RETURN TYPE SSFCRESCL,
    WA_DOC_CHNG TYPE SODOCCHGI1,
    W_DATA TYPE SODOCCHGI1,
    WA_BUFFER TYPE STRING, "To convert from 132 to 255
    Variables declarations
    V_FORM_NAME TYPE RS38L_FNAM,
    V_LEN_IN LIKE SOOD-OBJLEN,
    V_LEN_OUT LIKE SOOD-OBJLEN,
    V_LEN_OUTN TYPE I,
    V_LINES_TXT TYPE I,
    V_LINES_BIN TYPE I.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    FORMNAME = 'ZTEST'
    IMPORTING
    FM_NAME = V_FORM_NAME
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    W_CTRLOP-GETOTF = 'X'.
    W_CTRLOP-NO_DIALOG = 'X'.
    W_COMPOP-TDNOPREV = 'X'.
    CALL FUNCTION V_FORM_NAME
    EXPORTING
    CONTROL_PARAMETERS = W_CTRLOP
    OUTPUT_OPTIONS = W_COMPOP
    USER_SETTINGS = 'X'
    IMPORTING
    JOB_OUTPUT_INFO = W_RETURN
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 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.
    I_OTF[] = W_RETURN-OTFDATA[].
    CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
    FORMAT = 'PDF'
    MAX_LINEWIDTH = 132
    IMPORTING
    BIN_FILESIZE = V_LEN_IN
    TABLES
    OTF = I_OTF
    LINES = I_TLINE
    EXCEPTIONS
    ERR_MAX_LINEWIDTH = 1
    ERR_FORMAT = 2
    ERR_CONV_NOT_POSSIBLE = 3
    OTHERS = 4.
    IF SY-SUBRC <> 0.
    ENDIF.
    LOOP AT I_TLINE.
    TRANSLATE I_TLINE USING '~'.
    CONCATENATE WA_BUFFER I_TLINE INTO WA_BUFFER.
    ENDLOOP.
    TRANSLATE WA_BUFFER USING '~'.
    DO.
    I_RECORD = WA_BUFFER.
    APPEND I_RECORD.
    SHIFT WA_BUFFER LEFT BY 255 PLACES.
    IF WA_BUFFER IS INITIAL.
    EXIT.
    ENDIF.
    ENDDO.
    Attachment
    REFRESH: I_RECLIST,
    I_OBJTXT,
    I_OBJBIN,
    I_OBJPACK.
    CLEAR WA_OBJHEAD.
    I_OBJBIN[] = I_RECORD[].
    Create Message Body Title and Description
    I_OBJTXT = 'test with pdf-Attachment!'.
    APPEND I_OBJTXT.
    DESCRIBE TABLE I_OBJTXT LINES V_LINES_TXT.
    READ TABLE I_OBJTXT INDEX V_LINES_TXT.
    WA_DOC_CHNG-OBJ_NAME = 'smartform'.
    WA_DOC_CHNG-EXPIRY_DAT = SY-DATUM + 10.
    WA_DOC_CHNG-OBJ_DESCR = 'smartform'.
    WA_DOC_CHNG-SENSITIVTY = 'F'.
    WA_DOC_CHNG-DOC_SIZE = V_LINES_TXT * 255.
    Main Text
    CLEAR I_OBJPACK-TRANSF_BIN.
    I_OBJPACK-HEAD_START = 1.
    I_OBJPACK-HEAD_NUM = 0.
    I_OBJPACK-BODY_START = 1.
    I_OBJPACK-BODY_NUM = V_LINES_TXT.
    I_OBJPACK-DOC_TYPE = 'RAW'.
    APPEND I_OBJPACK.
    Attachment (pdf-Attachment)
    I_OBJPACK-TRANSF_BIN = 'X'.
    I_OBJPACK-HEAD_START = 1.
    I_OBJPACK-HEAD_NUM = 0.
    I_OBJPACK-BODY_START = 1.
    DESCRIBE TABLE I_OBJBIN LINES V_LINES_BIN.
    READ TABLE I_OBJBIN INDEX V_LINES_BIN.
    I_OBJPACK-DOC_SIZE = V_LINES_BIN * 255 .
    I_OBJPACK-BODY_NUM = V_LINES_BIN.
    I_OBJPACK-DOC_TYPE = 'PDF'.
    I_OBJPACK-OBJ_NAME = 'smart'.
    I_OBJPACK-OBJ_DESCR = 'test'.
    APPEND I_OBJPACK.
    CLEAR I_RECLIST.
    I_RECLIST-RECEIVER = '[email protected]'.
    I_RECLIST-REC_TYPE = 'U'.
    APPEND I_RECLIST.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    DOCUMENT_DATA = WA_DOC_CHNG
    PUT_IN_OUTBOX = 'X'
    COMMIT_WORK = 'X'
    TABLES
    PACKING_LIST = I_OBJPACK
    OBJECT_HEADER = WA_OBJHEAD
    CONTENTS_BIN = I_OBJBIN
    CONTENTS_TXT = I_OBJTXT
    RECEIVERS = I_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.
    IF SY-SUBRC <> 0.
    WRITE:/ 'Error When Sending the File', SY-SUBRC.
    ELSE.
    WRITE:/ 'Mail sent'.
    ENDIF.
    If you want to send some text as Body of the Mail then follow this once
    when u r callin the FM'SO_NEW_DOCUMENT_ATT_SEND_API1'.. points to remember
    1.u have to pass the body of content in table CONTENTS_TXT(ia m using I_OBJBIN) (each line a record) then. suppose i have appended 11 records to the table CONTENTS_TXT .
    2.PACKING_LIST(iam usign I_OBJPACK) table u ahve to append a redord as follows
    I_OBJPACK-TRANSF_BIN = ' '.
    I_OBJPACK-HEAD_START = 000000000000001.
    I_OBJPACK-HEAD_NUM = 000000000000001.
    I_OBJPACK-BODY_START = 000000000000002
    I_OBJPACK-BODY_NUM = 000000000000010.
    I_OBJPACK-DOC_TYPE = 'RAW'.
    append I_OBJPACK-.
    by the above code system treat the first line in table I_OBJBIN as header and the 2nd line to 10 lines tread as body.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    DOCUMENT_DATA = WA_DOC_CHNG
    PUT_IN_OUTBOX = 'X'
    TABLES
    PACKING_LIST = I_OBJPACK
    OBJECT_HEADER = WA_OBJHEAD
    CONTENTS_BIN = I_OBJBIN
    CONTENTS_TXT = I_OBJTXT
    RECEIVERS = I_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.
    Regards
    Tamá

  • What is the field and Table for "Batch Class" and "Class Type" in QM.

    Hi All,
    What is the field and Table for "Batch Class" and "Class Type" in QM.
    Thanks,

    Hi,
      For batch class the class type value is '023' . This you can find from KLAH table and the fileld for class type is KLART..
    And also all the data related to batch class are found in tables INOB, KLAH,KKSK and for the characeteristics of batch materials you can refer AUSP table.
    In INOB table, for batch class, you need to give 023 in KLART field and  value MCH1 in OBTAB filed.
    Please check this and let me know if this you need any more details?

  • Table ROOSFIELD Field "SELECTION"  value "A"

    Hello,
    My problem is as follows:
    I want to extract the fields REFBN, REFBK, REFGJ etc. from CO to BW using the data source 0CO_OM_CCA_9. These fields are included in the structure BWOM2_REFBLG which in turn included in the extraction structure ICCTRCSTA1 relevant to 0CO_OM_CCA_9.
    However the fields REFBN etc. are NOT visible in the data source 0CO_OM_CCA_9 using transaction RSA6.
    I therefore checked the table ROOSFIELD and the settings for the field SELECTION in this table was set to "A" (Field in BW & OLTP hidden by SAP) for the fields REFBN etc. Therefore the fields REFBN etc. are not visible in the DataSource.
    I would like to know the following:
    1. What is the significance of the value "A" for the field SELECTION?? I mean, why would SAP want to hide a particular field??
    2. What are the consequences of changing the settings from A to something else??
    I look forward to your reply. Thanks in advance.
    Raja
    Message was edited by: Rajasekhar Chalasani

    Hi Raja,
    give it a try and change the value to space using a little test abap and maintain the datasource again. After all, test it in rsa3 before you replicate it.
    I already did the same a few times and it worked. It might be possible that a field will not work as selection field but feel free to try.
    Sometimes you find some of these fields and there is a oss note available, telling that sap decides in some case whether it makes sense or not to get a field with a specific extractor.
    regards
    Siggi

  • Want field and table name for RESERVED coloum in MMBE

    Hi ,
            There is a RESERVED coloum in MMBE and     I want this   * RESERVED* coloum  in  MB52   .
           I got to know that Field related to this  RESERVED coloum is BDMNG coming from table RESB .
           To confirm the field and table I checked the value in BDMNG by putting join on MARA and RESB where MATNR = BAUGR.
            But I got  value in BDMNG is 50 and in MMBE it is .228 for that material.
               Please tell me field and table name for RESERVED coloum. and hoe to join MARA and RESB  to get exact result.
    Thanks and Regards,
    Ranu

    Hi,
    Mara-matnr is not equal to Resb-matnr and it shows no record if i do like this.
    But Mara-matnr is equal to Resb-baugr, and it gives me 1 record .But porblem is that i dint get BDMNG field matching with mmbe RESEVERD coloum.

Maybe you are looking for

  • How to load a java class when application is at first time browsed.

    Hi How can i load a simple java class on application startup. For servlet it could be done using "load on startup" tag in web.xml but how could the same be achieved for a simple java class. Thanks

  • How to install10.5

    I seem to be having aproblem installing 10.5 update-I keep getting an error message files missing from windows installer?-I deleted I-tunes completely and still would not let me install 10.5- I was able to install 10.4.1.10 again with no problem- any

  • Security deposit refund returned or applied to account?

    Long story short when I signed up with Verizon I was asked to pay a $400 deposit.  I paid $300.00 using a Verizon gift card, and $100 using my CC.  On 2/22/15 makes one year I have been with Verizon.  I logged on now to my account to pay my bill but

  • Need an alternative to rp-read-infotype to display infotype txts frm a BSP?

    Hi All, I need to display infotypes maintained texts(F9) from a bsp.  I created a test program to read these texts using rp-read-infotype and got it working but didn't realise i couldn't use this method in a BSP until i copied it in.  total bummer! D

  • New Excel Documents (Excel 2010)

    Hi We are using Excel 2010 and every time we open Excel to start a new workbook it opens on row 55. Is there anyway to correct this, it is driving me insane. Thank you, Sharon Chapman