+ All Categories
Home > Documents > Which T-code is Used Give Brief Description of All T-codes

Which T-code is Used Give Brief Description of All T-codes

Date post: 02-Jun-2018
Category:
Upload: mkumarshahi
View: 222 times
Download: 0 times
Share this document with a friend

of 37

Transcript
  • 8/11/2019 Which T-code is Used Give Brief Description of All T-codes

    1/37

    Can any one tell me, which transaction code is used give brief description of all the transaction codes?

    aNS:

    table TSTC

    Implementation - the word itself is telling that,> implementing SAP.> From the legacy system, we are going to impelemt it> to SAP.> Projects are 3 types.> Implementation,> Support> Rollout.> Implementation is , the business is going to be> implemented into SAP.> Support is, project is developed already,(means SAP> is implemented already) incorporating changes for> the new requirements.> Rollout means, suppose for one plant SAP is> implemented,and if we want to implemet it to anohter> plant, then this procedure is called rollout.> ithink u got the point

    ----------------

    What is IDOC.

    aNS:Idocs are Intermediate Documents which carry data. These are used indata migration from a sap/non-sap system to sap system.

    ----------------------

    what is ctu_params ?what is the use of this give one example of ctu_params

    Ans:

    hictu_params is a structure which is used in call transaction .you can define the mode, etc for processing of BDC with this structure instead of giving it separately in the call transaction statement.For details refer to the documentation of CALL TRANSACTION in SAP help.---------------Dear Friends...

    What is a difference betwwen OPEN_FORM & START_FORM?

    Ans:

    We can use Open-form ones in Script driver which end with Close_form but Start form can be use more than one time by ending with end_form. Between Start and endof form you can use write_form many times. After Ending with end_form you wouldhave to start_form again if you want to use write_form further in other page.-------------

    Hi,

  • 8/11/2019 Which T-code is Used Give Brief Description of All T-codes

    2/37

    I need a small help, i want to know the name of the table where thevalues of a variant will be store.

    Ans: variant values will get stored in table TVARV.----------------Hai all,I am trying to upload data from Excel to Internal table,I dont want to take it from the notepad.I want to upload it from the excel itself derelty.

    Ans:function module 'ALSM_EXCEL_INTERNAL_TABLE'.

    ------tIPS:

    Although you haven't asked for this, some light on how bad are nestedselects for the processing time is always good. It may help you andothers to understand why a program lasts long time although the selectsare done by an index... (common question for many of us).

    Note: What follows is part of my experience, you can get the same ideaby doing some work with a program running, st05 and sm50, and a lot oftime to collect data from them.

    Nesting selects are the common way to program data mining. But, as Isaid, they are quite inneficient if you're retrieving lots of rows. Theyshould be avoided anytime you can. The reason:Lets think on these (common) situations:1. select * from bkpf

    where.... select * from bseg

    where belnr = bkpf-belnr and bukrs = bkpf-bukrs andgjahr = bkpf-gjahr.

    .... append itab. endselect.

    endselect.2. select * from bseg where.. .... select single form lfa1 where lifnr = bseg-lifnr. ... append itab endselect.

    In case 1. you ask the dbserver to retrieve all the rows it can frombkpf with a certain where clause. But for each row that it retrieves,you interrupt it and ask it to retrieve all the rows from bseg with thegiven clause. The result: your first query has to be delayed, andrestarted after inner select has been acomplished. This reduces the time

    responce due to the restart on the dbserver side. It also leads to timedelays because the dbserver isn't making use of it's read aheadcapabilities. Solution:

    Note 2: I'll use select * here, but for performance reasons, use select instead (it's always better)

    select * from bkpf into table it_bkpf where...then you have two choices here (because bseg is a cluster table, if bsegwhere a transparent table the loop choice isn't a good solution) loop

  • 8/11/2019 Which T-code is Used Give Brief Description of All T-codes

    3/37

    at it_bkpf. check ... (apply any extra filter on it_bkpf here) select * from bseg appending corresponding fields of table it_bseg where belnr = it_bkpf-belnr and ...endloop.

    or (this is better in general) select * from bseg appending corresponding fields of table it_bseg for all entries in it_bkpfwhere belnr = it_bkpf-belnr and...

    I said, is better in general. The reason: when you issue a "for allentries in " with a cluster table, the resulting db queries are the sameas if you were executing the select inside a loop (the abap sqloptimizer sends exactly one select for each row in the table). Thisbehaviour doesn't apply if the table is a transparent one. In this case,the abap sql optimizer splits the it_bkpf (in this case) in subsets ofup to 20 rows, creates a in ( value1, value2, ... , valuen) and sends aselect like select ... where belnr in (value1, value2, ...., valuen) and... This last behaviour means an enhance in the data selection (becauseit's geting data in larger chunks of records on each step).---Hello everyone

    What does 'TIME+2(2)' mean. is it a kind of a way to refer a part ofTIME or what.

    Ans 1:

    Time +2(2) will extract hrs from timeor in simpler terms it will get value starting from 2 position upto next two positions

    Ans 2:

    DATA TIME TYPE T.

    TIME = SY-UZEIT.write:/ time.WRITE:/ TIME+2(2).

    If time is 102030, Result will be 20

    ----

    can u tell in which table to see the closingstock of the material eg i have to find the last updated closing stock

    which was on 30.11.2004 and then use it. Please help.

    ANS:===tables MCHB, MBEW

    ---Table & Field Descriptions:

  • 8/11/2019 Which T-code is Used Give Brief Description of All T-codes

    4/37

    ===========================How to get the field descriptions of a table?I need to get the associated data element descriptions of all the fields in a table. I think there's a way to do that using the SELECT statement.

    Can you please give me in detail, the various steps and methods to find the corresponding SAP tables and fields for a particular transaction code, for example (CS03).

    Do the following 2 steps. Then create your ABAP program accordingly with the SELECT statement.

    1. From table DD03L, give your tablename and get all of its field names and corresponding data element names.

    2. From table DD03T, get the description of each data element you have got in step 1.

    Then Use Function Module DDIF_FIELDINFO_GET

    The sample program will look like this:

    REPORT ZTABLEFIELDNAME.

    TABLES: DFIES, X030L.

    DATA: BEGIN OF INTTAB OCCURS 100. INCLUDE STRUCTURE DFIES.DATA: END OF INTTAB.

    PARAMETERS: TABLENM TYPE DDOBJNAME DEFAULT 'MSEG', FIELDNM TYPE DFIES-FIELDNAME DEFAULT 'MENGE'.

    call function 'DDIF_FIELDINFO_GET' exporting tabname = TABLENM

    FIELDNAME = FIELDNM LANGU = SY-LANGU* LFIELDNAME = ' '* ALL_TYPES = ' '* IMPORTING* X030L_WA = WATAB* DDOBJTYPE =* DFIES_WA =* LINES_DESCR = TABLES DFIES_TAB = INTTAB* FIXED_VALUES = EXCEPTIONS

    NOT_FOUND = 1 INTERNAL_ERROR = 2 OTHERS = 3.

    if sy-subrc 0. WRITE:/ 'Field name not found'. endif.

    LOOP AT INTTAB. WRITE:/ INTTAB-TABNAME, INTTAB-FIELDNAME, INTTAB-FIELDTEXT.

  • 8/11/2019 Which T-code is Used Give Brief Description of All T-codes

    5/37

    ENDLOOP.

    *** End of ProgramORStep 1.Run the transaction and click on System -> Status. Note the program name shown under the transaction code.

    Step 2.Run SE49 and enter the program name you identified in step 1 (SAPLCSDI) and thenpress enter.

    This will identify the tables used, however, as you want to know the fields usedas well then you may have to resort to looking at the actual code (get a developer involved if you're not one) using transaction SE80.

    In this case the transaction CS03 is assigned to a screen with a function groupso it's a slightly tricker process, hence the need for a developers service.

    For all the tables, descriptions and fields you can refer to these tables:DD02L : ALL SAP TABLE NAMESDD02T : DESCRIPTION OF TABLE NAMESDD03L : FIELDS IN A TABLE.

    -----

    Dear friends,

    Could you please kindly give in detail procedure about debuggingconcept?

    I would like to know about SYUCOMM FUNCTIONALITY usage.

    Ans :

    hi,

    if u want to know what is the concept behind debuggingprograms....well its a long story....in short, using a debugger, u cantrace the flow of ur programs and track specific program objects andvariables for values and statuses. for ABAP debugger, if u want tostart debugging from a specific line in code then set a breakpoint onthat line....u can do so by placing the cursor on that line and thenpressing the STOP button at the top....for overall debugging, u cantype '/h ' and then proceed with the execution of the program.

    within the debugger, u can use F5, F6, F7 F8 keys forproceeding....there are a whole lot of options which u need to explorein the debugger....

    sy-ucomm is a system variable that is used to respond to a useraction. it holds the function code that triggered PAI (that is processafter input) in case of dialog programs or even execution ofreports...------> can any1 explain smartforms.> just give an example how to create and call it nad use.> whats the main use of this?>

  • 8/11/2019 Which T-code is Used Give Brief Description of All T-codes

    6/37

    Ans1:

    smart forms are used for printed outputs.

    transaction : smartforms

    creation of a smartform (upon activation) leads to generation of afunction module by the system. this is the function module used topass data to the smart form and then view the output. this systemgenerated name can be retrieved by passing the name of the smart formto another function module which is ssf_function_module_name.

    for more information, u can visit sap-img.com.-----

    > Hi All,> Guys i am facing problem while issuing scripts from an po,the form is> MEDRUCK,My print preview is not coming properly,it is overlapping and also> bringing in some junk characters,but while printing it is ok.> Please suggest me if any one has gone through this ordeal before.Rest of> the forms are coming fine,e.g invoice,sales order etc.

    Ans:

    As long as it prints gud, u dont have to worry abt the print preview.Sometimes it does happen with scripts, there is nothing much u can doabt it. I have experienced in the footer of my PO form where thealignment aint rite on the Print Preview but it prints gud. A curiousques, I hope u wud have copied the MEDRUCK into a Z* form, did ya?-----hello,> &VBDPL-VRKME& is var defined on lable....i want to dipsly 'bag' for> &VBDPL-VRKME& if cust grp is cv or pe...>> i have following code in sap acript...> /: IF &WA_LIKP-KDGRP& = 'PE' OR &WA_LIKP-KDGRP& = 'CV'

    > /: DEFINE &VBDPL-VRKME& = 'BAG'> /: ENDIF> but it is ot working...pls help...urgent....>

    Ans:

    1. U use define only for variables created by u to pass in the routines.I dunno much about label printing. Have u defined the variableswa_likp***. Debug and check whether it is getting thosew values.

    Ans :2. Remove Define-----

    what is a print program iN SAP SCRIPT?

    ANS:===

    Printprogram is one which processes the text elements in the sapscripts. Its the one which pulls data for the forms.-----

    what is the main function of main window IN SS?

  • 8/11/2019 Which T-code is Used Give Brief Description of All T-codes

    7/37

    ANS:

    Main window is one which contains the text tat needs to run over morethan a page... ur line item details are printed in the main window.-----can any body have sticker printing print pogram and sap scripts plz send to me ,itz very very urgent.

    Ans:

    SAPScript is here:

    /E 101

    P1 ,,&MDENF&,,&MDENF&,,&MDENF&,,&MDENF&,,&MDENF&,,&MDENF&,,&MDENF&,,&MDENF&

    P1 ,,&MLOT&,,&MLOT&,,&MLOT&,,&MLOT&,,&MLOT&,,&MLOT&,,&MLOT&,,&MLOT&

    P1 ,,&ITAB-MCOL1&,,&ITAB-MCOL2&,,&ITAB-MCOL3&,,&ITAB-MCOL4&,,&ITAB-MCOL5&,,

    = &ITAB-MCOL6&,,&ITAB-MCOL7&,,&ITAB-MCOL8&

    /: SET DATE MASK = 'DD.MM.YY'

    P1 ,,&MDATE&,,&MDATE&,,&MDATE&,,&MDATE&,,&MDATE&,,&MDATE&,,&MDATE&,,&MDATE&

    /: SET TIME MASK = 'HH:MM'

    P1 ,,&MTIME&,,&MTIME&,,&MTIME&,,&MTIME&,,&MTIME&,,&MTIME&,,&MTIME&,,&MTIME&

    P1 ,,&MSHCD&,,&MSHCD&,,&MSHCD&,,&MSHCD&,,&MSHCD&,,&MSHCD&,,&MSHCD&,,&MSHCD&

    P1 ,,&MSHNAME&,,&MSHNAME&,,&MSHNAME&,,&MSHNAME&,,&MSHNAME&,,&MSHNAME&,,

    = &MSHNAME&,,&MSHNAME&

    P1

    P1

    Attached file for its driver program:

    REPORT ZPPR093S NO STANDARD PAGE HEADING

    LINE-SIZE 160LINE-COUNT 65(1) MESSAGE-ID M3.

    *Tables declaration.*-------------------------------------------TABLES: MCHA,MARA.

    *Internal table declaration.DATA :BEGIN OF ITAB OCCURS 0, MCOL1(5) TYPE C,

  • 8/11/2019 Which T-code is Used Give Brief Description of All T-codes

    8/37

    MCOL2(5) TYPE C, MCOL3(5) TYPE C, MCOL4(5) TYPE C, MCOL5(5) TYPE C, MCOL6(5) TYPE C, MCOL7(5) TYPE C, MCOL8(5) TYPE C, END OF ITAB.*Internal tables for Shade.DATA BEGIN OF ICLASS OCCURS 0. INCLUDE STRUCTURE SCLASS.DATA END OF ICLASS.

    DATA BEGIN OF IOBJDATA OCCURS 0. INCLUDE STRUCTURE CLOBJDAT.DATA END OF IOBJDATA.

    *Varriable declaration.DATA: MDEN(3),MFILA(3),MDENF(7), mcol type i value 8.DATA: ZCOL1(5),ZCOL2(5),ZCOL3(5),ZCOL4(5),ZCOL5(5),ZCOL6(5),ZCOL7(5), ZCOL8(5).DATA: PCTR(2) TYPE C,ECTR(2),MCTR(2),CTR TYPE N,ICTR TYPE i,MROW TYPEN.DATA: ZOBJEK LIKE INOB-OBJEK,MCLASS LIKE KLAH-CLASS,MSHCD(9) TYPE C,

    MSHNAME(10) TYPE C,MSHADMIX(30) TYPE C."For Shade

    *-----------------------------------------------*Parameters/select-options*-----------------------------------------------SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.PARAMETERS: MPLANT LIKE MCHA-WERKS OBLIGATORY, MLOT LIKE MCHA-CHARG OBLIGATORY, MTIME LIKE SY-UZEIT DEFAULT ' ', MPOSF(2) TYPE N OBLIGATORY.SELECTION-SCREEN BEGIN OF LINE. SELECTION-SCREEN POSITION 1. SELECTION-SCREEN COMMENT (15) TEXT-003.

    SELECTION-SCREEN POSITION 33. PARAMETER MPOST(2) TYPE N OBLIGATORY. SELECTION-SCREEN POSITION 36. SELECTION-SCREEN COMMENT (4) TEXT-002. PARAMETERS: MEND(2) TYPE N OBLIGATORY.SELECTION-SCREEN END OF LINE.PARAMETER MDATE LIKE SY-DATUM.SELECTION-SCREEN END OF BLOCK B1.

    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-005.PARAMETERS : MITEM LIKE MARA-MATNR, MSHade(10) TYPE C, MNAME(10) TYPE C.

    SELECTION-SCREEN END OF BLOCK B2.

    SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-004.PARAMETERS : ONE RADIOBUTTON GROUP RAD1, TWO RADIOBUTTON GROUP RAD1, THR RADIOBUTTON GROUP RAD1.SELECTION-SCREEN END OF BLOCK B3.

    *Entry Validation on screen.*---------------------------

  • 8/11/2019 Which T-code is Used Give Brief Description of All T-codes

    9/37

    AT SELECTION-SCREEN. IF NOT MITEM IS INITIAL. "For Manual Printing MSHCD = MSHADE. MSHNAME = MNAME. ELSE.* PERFORM VALIDATE_LOT. ENDIF.*Initialization Date as Prev month start to end.*----------------INITIALIZATION. CLEAR MDATE. MPLANT = '5100'. MDATE = SY-DATUM.* MTIME = SY-UZEIT.

    *-----------------------------------------------*Main Program*-----------------------------------------------START-OF-SELECTION. PERFORM PROCESS. PERFORM OPENS. PERFORM STARTS. PERFORM PRINTS.

    END-OF-SELECTION.

    *&---------------------------------------------------------------------**& Form VALIDATE_LOT*&---------------------------------------------------------------------*FORM VALIDATE_LOT .

    SELECT SINGLE MATNR FROM MCHA INTO MCHA-MATNR WHERE WERKS EQ MPLANT AND CHARG EQ MLOT. IF SY-SUBRC NE 0.

    MESSAGE E899 WITH 'This Lot Does Not Exist in Master Table'. ELSE. PERFORM GET_SHADE. ENDIF.ENDFORM. " VALIDATE_LOT*&---------------------------------------------------------------------**& Form PROCESS*&---------------------------------------------------------------------*FORM PROCESS . IF NOT MITEM IS INITIAL. "Manual printing MDEN = MITEM+1(3). MFILA = MITEM+4(3). CONCATENATE MDEN '/' MFILA INTO MDENF.

    ELSE. MDEN = MCHA-MATNR+1(3). MFILA = MCHA-MATNR+4(3). CONCATENATE MDEN '/' MFILA INTO MDENF. ENDIF. MCTR = MPOST - MPOSF + 1. ECTR = 1. PCTR = MPOSF + 1 - 1. WHILE PCTR LE MPOST. "Position Counter Loop CTR = 0.

  • 8/11/2019 Which T-code is Used Give Brief Description of All T-codes

    10/37

    CLEAR: ZCOL1,ZCOL2,ZCOL3,ZCOL4,ZCOL5,ZCOL6,ZCOL7,ZCOL8. DO mcol TIMES. "No.of column Loop CTR = CTR + 1. CASE CTR. WHEN 1. CONCATENATE PCTR '-' ECTR INTO ZCOL1. WHEN 2. CONCATENATE PCTR '-' ECTR INTO ZCOL2. WHEN 3. CONCATENATE PCTR '-' ECTR INTO ZCOL3. WHEN 4. CONCATENATE PCTR '-' ECTR INTO ZCOL4. WHEN 5. CONCATENATE PCTR '-' ECTR INTO ZCOL5. WHEN 6. CONCATENATE PCTR '-' ECTR INTO ZCOL6. WHEN 7. CONCATENATE PCTR '-' ECTR INTO ZCOL7. WHEN 8. CONCATENATE PCTR '-' ECTR INTO ZCOL8. ENDCASE.

    IF ECTR = MEND. ECTR = 1.

    PCTR = PCTR + 1. ELSE. ECTR = ECTR + 1. ENDIF. IF PCTR > MPOST. EXIT. ENDIF. ENDDO.* WRITE: / ZCOL1,ZCOL2,ZCOL3,ZCOL4,ZCOL5,ZCOL6,ZCOL7,ZCOL8. MOVE:ZCOL1 TO ITAB-MCOL1,ZCOL2 TO ITAB-MCOL2,ZCOL3 TO ITAB-MCOL3, ZCOL4 TO ITAB-MCOL4,ZCOL5 TO ITAB-MCOL5,ZCOL6 TO ITAB-MCOL6, ZCOL7 TO ITAB-MCOL7,ZCOL8 TO ITAB-MCOL8. APPEND ITAB.

    CLEAR ITAB. ENDWHILE.

    ENDFORM. " PROCESS

    *&---------------------------------------------------------------------**& Form OPENFORM*&---------------------------------------------------------------------*FORM OPENS . CALL FUNCTION 'OPEN_FORM' EXPORTING DEVICE = 'PRINTER'

    FORM = 'ZPPS093S' LANGUAGE = SY-LANGU EXCEPTIONS CANCELED = 1 DEVICE = 2 FORM = 3 OPTIONS = 4 UNCLOSED = 5 MAIL_OPTIONS = 6 ARCHIVE_ERROR = 7

  • 8/11/2019 Which T-code is Used Give Brief Description of All T-codes

    11/37

    INVALID_FAX_NUMBER = 8 MORE_PARAMS_NEEDED_IN_BATCH = 9 OTHERS = 10. IF SY-SUBRC 0. MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. ENDIF.ENDFORM. " OPENFORM*&---------------------------------------------------------------------**& Form STARTFORM*&---------------------------------------------------------------------*FORM STARTS . CALL FUNCTION 'START_FORM' EXPORTING FORM = 'ZPPS093S' EXCEPTIONS FORM = 1 FORMAT = 2 UNENDED = 3 UNOPENED = 4 UNUSED = 5 OTHERS = 6. IF SY-SUBRC 0. MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. ENDIF.ENDFORM. " STARTFORM*&---------------------------------------------------------------------**& Form WRITEFORM*&---------------------------------------------------------------------*FORM WRITES USING P_ELE P_WIN. CALL FUNCTION 'WRITE_FORM' EXPORTING ELEMENT = P_ELE WINDOW = P_WIN EXCEPTIONS ELEMENT = 1

    FUNCTION = 2 TYPE = 3 UNOPENED = 4 UNSTARTED = 5 WINDOW = 6 BAD_PAGEFORMAT_FOR_PRINT = 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. ENDIF.ENDFORM. " WRITEFORM

    *&---------------------------------------------------------------------**& Form PRINTS*&---------------------------------------------------------------------*FORM PRINTS . IF TWO = 'X'. MROW = 9. ELSE. MROW = 8. ENDIF. ICTR = 1.

  • 8/11/2019 Which T-code is Used Give Brief Description of All T-codes

    12/37

    LOOP AT ITAB.* PERFORM WRITES. IF ONE = 'X'. PERFORM WRITES USING '101' 'MAIN'. "Color label Printedstationary ELSEIF TWO = 'X'. PERFORM WRITES USING '102' 'MAIN'. "Without Shade ELSE. PERFORM WRITES USING '103' 'MAIN'. "Color label plain stationary ENDIF. ICTR = ICTR + 1. IF ICTR > MROW. ICTR = 1. CALL FUNCTION 'END_FORM'. PERFORM STARTS. ENDIF. ENDLOOP. CALL FUNCTION 'END_FORM'. CALL FUNCTION 'CLOSE_FORM'.ENDFORM. " PRINTS

    *&---------------------------------------------------------------------**& Form GET_SHADE*&---------------------------------------------------------------------*

    FORM GET_SHADE .

    SELECT SINGLE SPART FROM MARA INTO MARA-SPART WHERE MATNR EQ MCHA-MATNR. CASE MARA-SPART. WHEN 'PY' OR 'FY'. MCLASS = 'MERGE_NO'. WHEN 'AT'. MCLASS = 'AIRTEX'. WHEN 'DT'. MCLASS = 'DTLOT'. WHEN OTHERS. MCLASS = 'TEXLOT'.

    ENDCASE.

    MOVE MCHA-MATNR(18) TO ZOBJEK. MOVE MLOT(10) TO ZOBJEK+18(10). PERFORM SHADE_FUNC.*Added Check of Class "TEX_LOT" due to both class is being used. IF MARA-SPART = 'TX' AND MSHADMIX IS INITIAL. MCLASS = 'TEX_LOT'. PERFORM SHADE_FUNC. ENDIF. LOOP AT IOBJDATA. CHECK IOBJDATA-SMBEZ = 'MASTER BATCH CHIPS COLOR'. MSHADMIX = IOBJDATA-AUSP1.

    ENDLOOP. IF MSHADMIX IS NOT INITIAL.* For Shade name MSHNAME = MSHADMIX(10). SEARCH MSHNAME FOR '('. IF SY-FDPOS NE 0. MSHNAME = MSHNAME+0(SY-FDPOS). ENDIF.* For Shade Code SEARCH MSHADMIX FOR 'DD/'.

  • 8/11/2019 Which T-code is Used Give Brief Description of All T-codes

    13/37

    IF SY-FDPOS NE 0. MSHCD = MSHADMIX+SY-FDPOS(9). SEARCH MSHCD FOR ')'. IF SY-FDPOS NE 0. MSHCD = MSHCD+0(SY-FDPOS). ENDIF. ENDIF. ENDIF.ENDFORM. " GET_SHADE

    *&---------------------------------------------------------------------**& Form SHADE_FUNC*&---------------------------------------------------------------------*FORM SHADE_FUNC . CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS' EXPORTING CLASS = MCLASS CLASSTEXT = 'X' CLASSTYPE = '023' LANGUAGE = SY-LANGU OBJECT = ZOBJEK OBJECTTABLE = 'MCH1' TABLES T_CLASS = ICLASS

    T_OBJECTDATA = IOBJDATA EXCEPTIONS NO_CLASSIFICATION = 1 NO_CLASSTYPES = 2 INVALID_CLASS_TYPE = 3 OTHERS = 4.

    ENDFORM. " SHADE_FUNC

    -------

    Hi maddu,

    I am trying to give answer of your question as best of my knowledge.1)If we dont write "start of selection" then will the program work?A1. Yes program will work.2)When is it must to write " Start of Selection"?A2. Befor start of selct statment to retreive the data from database.3)In sap script can we declare variables? if yesthen can we put values into it?A3. yes using &DEFINE& key word and assign value to it ysing DEFINE values '123456'

    4)In Sapscript can there be 2 main windows ?A4. Yes. with diffrent name example Lable printing standard sap script.5)In sapscirpt how ll u take output directly to PDF without running any other report ?6)In BDC if u r in a recording, there is a tablecontrol and data to be uploaded goes beyond thescreen and it gives error. How will u solve theproblem?7)?What are work processess?

  • 8/11/2019 Which T-code is Used Give Brief Description of All T-codes

    14/37

    8)What is a INDEX and how it works?A. Index your are talikg about is Secondary index which are define in dictionary for fast accessing data with nonkey field.9)In sapscript how can we call a subroutine?A9. PERFORM in USING CHANGING ENDPERFORM10) In sap script how to get "page 1 of 10"?A.10 use following line to disaplay as above page of 11)How to disable the fields in selection screen inreport based on for example selecting a radiobutton, I want to disable a parameter ?A11. use event AT selection screen output.12)Difference between ALV_LIST and ALV_GRID?A12. Only diffrence between them are of output of report.13) how you load LONG TEXT in sap script using BDC?14) What are LOCK OBJECTS?A14. LOCK OBJECTS are define in the dictionary at the time of modification of object. object is locked for other user for updation

    one can only use it for display.

    Thanks and regards,

    Nimesh JhanwarIBM Global Services India.National Highway -8Silokhera, Gurgaon (Haryana)

    --- Maddu wrote:

    > I am new to abap...and have a interview in near> future.>>>> 1)If we dont write "start of selection" then will> the program work?> 2)When is it must to write " Start of Selection"?> 3)In sap script can we declare variables? if yes> then can we put values into it?> 4)In Sapscript can there be 2 main windows ?> 5)In sapscirpt how ll u take output directly to PDF

    > without running any other report ?> 6)In BDC if u r in a recording, there is a table> control and data to be uploaded goes beyond the> screen and it gives error. How will u solve the> problem?> 7)?What are work processess?> 8)What is a INDEX and how it works?> 9)In sapscript how can we call a subroutine?> 10) In sap script how to get "page 1 of 10"?> 11)How to disable the fields in selection screen in

  • 8/11/2019 Which T-code is Used Give Brief Description of All T-codes

    15/37

    > report based on for example selecting a radio> button, I want to disable a parameter ?> 12)Difference between ALV_LIST and ALV_GRID?> 13) how you load LONG TEXT in sap script using BDC?> 14) What are LOCK OBJECTS?>>> MADDU

    ------Dear Abapers,

    How can I print Date in following format in Report program. I have used write mdate MM/DD/YY . But result is like DD/MM/YY

    MM/DD/YYYY

    YYYY/MM/DD

    DDth Month Year

    Ans

    hi,

    use the following code now

    data : l_datum type sy-datum,

    l_datum1(2) type c,

    l_datum2(2) type c,

    l_datum3(2) type c,

    new_date type string.

    l_datum = sy-datum.

    l_datum1 = sy-datum+2(2).

    l_datum2 = sy-datum+4(2).

    l_datum3 = sy-datum+6(2).

    concatenate l_datum2 '/' l_datum3 '/' l_datum1 into new_date.

  • 8/11/2019 Which T-code is Used Give Brief Description of All T-codes

    16/37

    write :/ new_date .

    -------

    Or :

    hi,use the following code nowdata : l_datum type sy-datum,

    l_datum1(2) type c,

    l_datum2(2) type c,

    l_datum3(2) type c,

    new_date type string.

    l_datum = sy-datum.

    l_datum1 = sy-datum+2(2).

    l_datum2 = sy-datum+4(2).

    l_datum3 = sy-datum+6(2).

    concatenate l_datum2 '/' l_datum3 '/' l_datum1 into new_date.

    write :/ new_date .

    --------

    hi,use the following code nowdata : l_datum type sy-datum,

    l_datum1(2) type c,

    l_datum2(2) type c,

    l_datum3(2) type c,

    new_date type string.

    l_datum = sy-datum.

    l_datum1 = sy-datum+2(2).

  • 8/11/2019 Which T-code is Used Give Brief Description of All T-codes

    17/37

  • 8/11/2019 Which T-code is Used Give Brief Description of All T-codes

    18/37

    temp1 = '1234-'. MOVE temp1 TO temp_var. CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT' CHANGING value = temp_var. write temp_var.

    ----> What is memory id? how to use this? what is the syntax to use memory id? I> know that we can use the memory id with import and export statements. But> want further details about this.>> With thanks & regards,> Sridevi.

    Ans:

    > Hi Sridevi,> we can use memory id to export data between difeerent sessions using import> and export commands.syntax:EXPORT f1 f2 ... fn TO MEMORY ID .

    IMPORT f1 f2 ... fn FROM MEMORY ID .

    ----HI PLZ ANY ONE TELL ME WHAT IS THE DIFFERENCEBETWEEN THE ALE AND BAPI.Ans:

    The interface concept of the classic R/3 is based on two different strategies: Remote Function Calls (RFC)and data exchange through IDoc message documents. RFC makes direct and synchronous calls of a program in theremote system. If the caller is an external program it will call an RFC-enabled

    function in R/3 and if thecalling program is the R/3 system it will call an RFC-function in another R/3-system or it will call anon-R/3 program through a gateway-proxy (usually rfcexec.exe). BAPIs are a subset of the RFC-enabledfunction modules, especially designed as Application Programming Interface (API)to the SAP businessobject, or in other words: are function modules officially released by SAP to becalled from externalprograms.

    IDocs are text encoded documents with a rigid structure that are used to exchange data between R/3

    and a foreign system. Instead of calling a program in the destination system directly, the data is firstpacked into an IDoc and then sent to the receiving system, where it is analyzedand properly processed.Therefore an IDoc data exchange is always an asynchronous process. The significant differencebetween simple RFC-calls and IDoc data exchange is the fact, that every action performed on IDocs areprotocolled by R/3 and IDocs can be reprocessed if an error occurred in one of the message steps.

  • 8/11/2019 Which T-code is Used Give Brief Description of All T-codes

    19/37

    While IDocs have to be understood as a data exchange protocol, EDI and ALE are typical use cases for IDocs.R/3 uses IDocs for both EDI and ALE to deliver data to the receiving system. ALE is basically the schedulingmechanism that defines when and between which partners and what kind of data will be exchanged on a regularor event triggered basis. Such a set-up is called an ALE-scenario.

    The philosophical difference between EDI and ALE can be pinned as follows: If wesend data to an externalpartner, we generally speak of EDI, while ALE is a mechanism to reliable replicate data between trustingsystems to store a redundant copy of the IDoc data. The difference is made clear, when we think of apurchase order that is sent as an IDoc. If we send the purchase order to a supplier then the supplier willstore the purchase order as a sales order. However, if we send the purchase order via ALE to another R/3system, then the receiving system will store the purchase order also as a purchase order.

    Hope it answers your concern,---------------

    1. if u want to see tcodes, u just go for se93.

    2. u can see all t codes in the table TSTC.----

    Hi there,>> How can I implement a Matrix ( M[][] ) in ABAP/4 ?

    Ans:

    since there is no concept of arrays in ABAP, u can use internal tables.....

    each element of an internal table will be a field string or astructure in itself...thats the way u can try....

    here's an example for declaring such a table...

    TYPES : BEGIN OF type1, i1 TYPE i, i2 TYPE i, END OF type1.

    TYPES : BEGIN OF type2, c1 TYPE c,

    c2 TYPE c, END OF type2.

    DATA : BEGIN OF t_itab OCCURS 0, fld1 TYPE type1, fld2 TYPE type2, END OF t_itab.

    t_itab-fld1-i1 = 1.t_itab-fld1-i2 = 2.

  • 8/11/2019 Which T-code is Used Give Brief Description of All T-codes

    20/37

  • 8/11/2019 Which T-code is Used Give Brief Description of All T-codes

    21/37

    Hi Bhavna Thsi is abir here.wht i can guess u need a report were in f4 help u get a data of an internal table,Right?????..........Im havin the soln. write likethis:-

    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_fname. " where "p_fname is the fieldin question

    PERFORM file_drop_help.

    now in module file_drop_help use

    'F4IF_INT_TABLE_VALUE_REQUEST' function module.

    If u still need clarification do mail 2 me

    -----------------

    Hihere is the difference between Type P and Type F..

    Packed numbers - type P:

    Type P data allows digits after the decimal point. The number of decimal placesis generic,and is determined in the program. The value range of type P data depends on itssize

    and the number of digits after the decimal point. The valid size can be any value from 1 to 16bytes. Two decimal digits are packed into one byte, while the last byte containsone digit andthe sign. Up to 14 digits are allowed after the decimal point. The initial valueis zero.When working with type P data, it is a good idea to set the program attribute Fixedpoint arithmetic.Otherwise, type P numbers are treated as integers.

    You can use type P data for such values as distances, weights, amounts of money,and so on.

    Floating point numbers - type F:

    The value range of type F numbers is 1x10**-307 to 1x10**308 for positive and negativenumbers, including 0 (zero). The accuracy range is approximately 15 decimals, dependingon the floating point arithmetic of the hardware platform. Since type F data isinternallyconverted to a binary system, rounding errors can occur. Although the ABAP processor tries

  • 8/11/2019 Which T-code is Used Give Brief Description of All T-codes

    22/37

    to minimize these effects, you should not use type F data if high accuracy is required. Instead, use type P data.

    You use type F fields when you need to cope with very large valueranges and rounding errors are not critical.

    Using I and F fields for calculations is quicker than using P fields.Arithmetic operations using I and F fields are very similar to theactual machine code operations, while P fields require more supportfrom the software. Nevertheless, you have to use type P data to meetaccuracy or value range requirements.-----------------

    Could any one pls giv a clear idea about check table and value table , its difference.

    Ans:

    Value table:

    In some cases you can see when you define a domain that all the table fields or structure components referring to this domain should be checked againsta certain table. This information can be stored in the domain by entering a value table.

    Check table:A foreign key links two table T1 and T2 by assigning fields of table T1

    to the primary key fields of table T2. Table T1 is called the foreign key table(dependent table) and table T2 the check table (referenced table).

    A SELECT statement is generated from the definition of the foreign key. If an entry is made in the check field, this SELECT statement is submitted. If a suitable record of the check table is found, the entry is valid. Otherwise the entry isrejected.

    ------------------------

    I am trying to create material through Recording (either through BDCor LSMW) using transaction MM01 uploading file from my local system.But I am getting stuck up at the screen for entering Plant andStorage Location as the data of Plant and Storage Location is notgetting uploaded from the file. I am puzzled why it is happening so?

    Can anyone throw some light on how to go about mass uploading ofMaterial master data, uploading the data from the file from our localsystem?

    Ans:

    Try This BDC with some modification.Upload file structure should be as be ITAB.

    REPORT ZMMMM01 NO STANDARD PAGE HEADING LINE-SIZE 132 LINE-COUNT 65(3) MESSAGE-ID Z0.

  • 8/11/2019 Which T-code is Used Give Brief Description of All T-codes

    23/37

    ****************************** TABLES USED *****************************TABLES: BHDGD, MARA,MARM,MAKT,MKAL,MARD .

    INCLUDE BDCRECX1.

    **************************** SELECTION SCREEN **************************SELECTION-SCREEN BEGIN OF BLOCK INPUT WITH FRAME TITLE TEXT-000.

    *PARAMETERS :* IMBRSH LIKE MARA-MBRSH DEFAULT 'M',* IMTART LIKE MARA-MTART DEFAULT 'ZRAW' .SELECTION-SCREEN SKIP 2.

    SELECTION-SCREEN SKIP 1.SELECTION-SCREEN END OF BLOCK INPUT.

    ***************************** INITIALIZATION ***************************INITIALIZATION.**************************** DATA DEFINITION ***************************

    DATA : BEGIN OF ITAB OCCURS 100, MATNR LIKE MARA-MATNR, " Material Number/Name #01 MTART LIKE MARA-MTART, " Material Type #02

    WERKS LIKE MARC-WERKS, " Plant #03 MAKTX LIKE MAKT-MAKTX, " Material Description #04 MEINS(3) TYPE C, " Unit of Measure #05 MATKL LIKE MARA-MATKL, " Material Group #06 BISMT LIKE MARA-BISMT, " Old material number #07 EXTWG LIKE MARA-EXTWG, " External material group #08 SPART LIKE MARA-SPART, " Division #09 BRGEW(13) TYPE C , " Gross weight #10 GEWEI(3) TYPE C, " Weight Unit #11 NTGEW(13) TYPE C, " Net Weight #12 VOLUM(13) TYPE C, " Volume #13 VOLEH(3) TYPE C, " Volume unit #14 GROES LIKE MARA-GROES, " Size/dimensions #15

    FERTH LIKE MARA-FERTH, "Prod/Insp Memo #16 NORMT LIKE MARA-NORMT, "Ind. Standard DesC. #17 WRKST LIKE MARA-WRKST, " Basic Material #18 ZEINR LIKE MARA-ZEINR, " Document number #19 ZEIAR LIKE MARA-ZEIAR, " Document type #20 ZEIVR LIKE MARA-ZEIVR, " Document version #21 BLATT LIKE MARA-BLATT, " Page number of document #22 AESZN LIKE MARA-AESZN, " Doc change number #23 ZEIFO LIKE MARA-ZEIFO, " Page format of doc #24 BLANZ(3) TYPE C, " Number of sheets #25 MMSTA LIKE MARC-MMSTA, " Plant-Spec Matl Status #26 MFRGR LIKE MARC-MFRGR, " Material freight group #27 EKWSL LIKE MARA-EKWSL, " Purchasing Value Key #28

    KZKRI LIKE MARC-KZKRI, " Critical Part #29 USEQU LIKE MARC-USEQU, " Quota arrangement usage #30 KORDB LIKE MARC-KORDB, " Source list requirement #31 OCTROI LIKE MARC-OCTROI, " Octroi #32 DISGR LIKE MARC-DISGR, " MRP Group #33 EKGRP LIKE MARC-EKGRP, " Purchasing Group #34 MAABC LIKE MARC-MAABC, " ABC indicator #35 DISMM LIKE MARC-DISMM, " MRP Type #36 MINBE(13) TYPE C, " Reorder point #37 DISPO LIKE MARC-DISPO, " MRP Controller #38

  • 8/11/2019 Which T-code is Used Give Brief Description of All T-codes

    24/37

    DISLS LIKE MARC-DISLS, " Lot size #39 BSTMA(13) TYPE C, " Maximum lot size #40 MABST(13) TYPE C, " Maximum stock level #41 BSTRF(13) TYPE C, " Rounding value #42 BESKZ LIKE MARC-BESKZ, " Procurement Type #43 SOBSL LIKE MARC-SOBSL, " Special procurement type #44 LGPRO LIKE MARC-LGPRO, " Issue Storage Location #45 RGEKZ LIKE MARC-RGEKZ, " Indicator: Backflush #46 LGFSB LIKE MARC-LGFSB, " DefaStorlOC #47 SCHGT LIKE MARC-SCHGT, " bulk material #48 DZEIT(2) TYPE C, " In-house prod time #49 PLIFZ(3) TYPE C, " Planned del time #50 WEBAZ(3) TYPE C, " GR PROC. TIME #51 FHORI LIKE MARC-FHORI, " SchMarginKey #52 PERKZ LIKE MARC-PERKZ, " Period indicator #53 STRGR LIKE MARC-STRGR, " Planning strategy group #54 MTVFP LIKE MARC-MTVFP, " Availability Check #55 ART LIKE QMAT-ART, " ACT #56 BKLAS LIKE MBEW-BKLAS, " Valuation Class #57 VPRSV LIKE MBEW-VPRSV, " Price Control Indicator #58 PEINH(5) TYPE C, " Price Unit #59 VERPR(11) TYPE C, " MOV. AVG. RATE #60 STPRS(11) TYPE C, " Standard Price #61 EKALR LIKE MBEW-EKALR, " Matl Costed with Qty Struc #62

    HKMAT LIKE MBEW-HKMAT, " Material Origin #63 KOSGR LIKE MBEW-KOSGR, " Costing Overhead Group #64 AWSLS LIKE MARC-AWSLS, " Variance Key #65 UMREN(5), " Conversion base #66 MEINH(3) TYPE C, " Altr unit #67 UMREZ(5) TYPE C, " Numerforconver #68 SRL TYPE I, " SERIAL (INTERNALLY GENERATED) END OF ITAB .

    DATA : BEGIN OF ITAB_COPY OCCURS 10. INCLUDE STRUCTURE ITAB. DATA : END OF ITAB_COPY.

    DATA : SRL TYPE I, MARAFLG(1) TYPE C, ITABFLG(1) TYPE C, QMPURFLAG(1) TYPE C. DATA : XSPART(2) TYPE N, CSPART(2) TYPE C, XDISGR(4) TYPE N, CDISGR(4) TYPE C, XAWSLS(6) TYPE N, CAWSLS(6) TYPE C, XMTVFP(02) TYPE N, CMTVFP(02) TYPE C, XSOBSL(02) TYPE N,

    CSOBSL(02) TYPE C, XMFRGR(03) TYPE N, CMFRGR(03) TYPE C.************************* AT SELECTION-SCREEN ****************************AT SELECTION-SCREEN.

    *********** BEGIN OF CODE.- PROGRAM EXECUTION STARTS HERE. *************START-OF-SELECTION. PERFORM INITIALIZE_APPLICATION. PERFORM GET_DATA_FOR_INPUT.

  • 8/11/2019 Which T-code is Used Give Brief Description of All T-codes

    25/37

    PERFORM RUN_BDC . PERFORM FILTER_DATA. PERFORM FORMAT_DATA. PERFORM PRINT_REPORT.

    ***************************** SUB ROUTINES ***************************FORM INITIALIZE_APPLICATION. MOVE: SY-MANDT TO BHDGD-MANDT, SY-LINSZ TO BHDGD-LINES, "line size as specified in report SY-UNAME TO BHDGD-UNAME, "Username SY-REPID TO BHDGD-REPID. "Name of ABAP-Program

    CASE SY-MANDT. WHEN '120' OR '220' OR '320'. MOVE 'BAJAJ TEMPO LTD.' TO BHDGD-LINE1. WHEN '110' OR '210' OR '310' OR '510'. MOVE 'JAYAHIND INDUSTRIES LTD.' TO BHDGD-LINE1. ENDCASE.

    ENDFORM. "INITIALIZE_APPLICATION******* THIS FORM RETRIEVES RECORDS FOR INPUT SELECTION CRITERIA.******FORM GET_DATA_FOR_INPUT.

    PERFORM UPLOAD TABLES ITAB.

    ENDFORM. "GET_DATA_FOR_INPUT

    ******* THIS FORM FILTERS OUT UNWANTED RECORDS. ***********************FORM FILTER_DATA.

    ENDFORM. "FILTER_DATA

    ******* THIS FORM DOES NECESSARY CALCULATIONS/FORMATING.****************FORM FORMAT_DATA.**SORT ITAB BY MATNR .ENDFORM. "FORMAT_DATA

    ******* THIS FORM PRINTS THE REPORT. **********************************FORM PRINT_REPORT. FORMAT COLOR COL_NORMAL.

    ENDFORM. "PRINT_REPORT

    ********************* TOP OF PAGE **************************************TOP-OF-PAGE. GET TIME. CASE SY-LINSZ. WHEN 80. WRITE : /1(80) BHDGD-LINE1 CENTERED,

    /1(80) SY-TITLE CENTERED. SKIP 1. WRITE : /'EDP Ref. :' RIGHT-JUSTIFIED, SY-REPID LEFT-JUSTIFIED, 42(10) 'Run Date :', SY-DATUM, ' Time :' , SY-UZEIT, / 'Tran.Code:', SY-TCODE LEFT-JUSTIFIED, 42(10) 'Page No. :', SY-PAGNO LEFT-JUSTIFIED.

    WHEN 132. WRITE : /1(132) BHDGD-LINE1 CENTERED, /1(132) SY-TITLE CENTERED.

  • 8/11/2019 Which T-code is Used Give Brief Description of All T-codes

    26/37

    SKIP 1. WRITE : /'EDP Ref. :' RIGHT-JUSTIFIED, SY-REPID LEFT-JUSTIFIED, 94(10) 'Run Date :', SY-DATUM, ' Time :' , SY-UZEIT, / 'Tran.Code:', SY-TCODE LEFT-JUSTIFIED, 94(10) 'Page No. :', SY-PAGNO LEFT-JUSTIFIED.

    ENDCASE.

    ************** INPUT SELECTION IF TO BE PRINTED. **********************

    ULINE.

    ************** COLUMNS HEADING AT TOP OF PAGE. ************************

    ULINE.

    ********************* END OF PAGE **************************************END-OF-PAGE. ULINE. CASE SY-LINSZ. WHEN 80. WRITE :/ 'USER :', SY-UNAME LEFT-JUSTIFIED,

    68(6) 'HOST :', SY-HOST(6) LEFT-JUSTIFIED.

    WHEN 132. WRITE :/ 'USER :', SY-UNAME LEFT-JUSTIFIED, 120(6) 'HOST :', SY-HOST(6) LEFT-JUSTIFIED. ENDCASE. ULINE.

    *&---------------------------------------------------------------------**& Form RUN_BDC*&---------------------------------------------------------------------** text

    *----------------------------------------------------------------------** --> p1 text*

  • 8/11/2019 Which T-code is Used Give Brief Description of All T-codes

    27/37

    PERFORM BDC_FIELD USING 'BDC_OKCODE' '/00'. PERFORM BDC_FIELD USING 'RMMG1-MATNR'** 'ZRJN_MM05'. ITAB-MATNR . PERFORM BDC_FIELD USING 'RMMG1-MBRSH' 'M'. PERFORM BDC_FIELD USING 'RMMG1-MTART'** 'ZRAW'. ITAB-MTART . PERFORM BDC_DYNPRO USING 'SAPLMGMM' '0070'. PERFORM BDC_FIELD USING 'BDC_CURSOR' 'MSICHTAUSW-DYTXT(15)'. PERFORM BDC_FIELD USING 'BDC_OKCODE' '=ENTR'. PERFORM BDC_FIELD USING 'MSICHTAUSW-KZSEL(01)' 'X'. PERFORM BDC_FIELD USING 'MSICHTAUSW-KZSEL(02)' 'X'. IF ITAB-OCTROI = ' ' OR ITAB-EKGRP = ' '. ELSE. PERFORM BDC_FIELD USING 'MSICHTAUSW-KZSEL(09)' 'X'.

    ENDIF. IF ITAB-DISPO = ' '. ELSE. PERFORM BDC_FIELD USING 'MSICHTAUSW-KZSEL(12)' 'X'. PERFORM BDC_FIELD USING 'MSICHTAUSW-KZSEL(13)' 'X'. PERFORM BDC_FIELD USING 'MSICHTAUSW-KZSEL(14)' 'X'. PERFORM BDC_FIELD USING 'MSICHTAUSW-KZSEL(15)' 'X'. ENDIF.

    IF ( ITAB-OCTROI = ' ' OR ITAB-EKGRP = ' ' ) AND ITAB-DISPO = ' '. ELSE. PERFORM BDC_DYNPRO USING 'SAPLMGMM' '0080'. PERFORM BDC_FIELD USING 'BDC_CURSOR' 'RMMG1-LGORT'. PERFORM BDC_FIELD USING 'BDC_OKCODE' '=ENTR'. PERFORM BDC_FIELD USING 'RMMG1-WERKS'** '1061'. ITAB-WERKS .**Selection of Views ENDIF. PERFORM BASIC_VIEW_CREATE.

    IF ITAB-OCTROI = ' ' OR ITAB-EKGRP = ' '. ELSE. PERFORM PUR_VIEW. ENDIF .

    PERFORM MRP_VIEW.

    IF ITAB-ART = '01' OR ITAB-ART = '1'.** PERFORM QM_VIEW.

  • 8/11/2019 Which T-code is Used Give Brief Description of All T-codes

    28/37

    ENDIF.

    IF ITAB-BKLAS NE ' ' . PERFORM ACC_COS_VIEW. ENDIF .

    SELECT SINGLE * FROM MARM WHERE MATNR = ITAB-MATNR AND MEINH = ITAB-MEINH . IF SY-SUBRC NE 0 . IF ITAB-MEINH ' '. PERFORM EXTRAS_VIEW. ENDIF. ENDIF .

    PERFORM BDC_DYNPRO USING 'SAPLMGMM' '4000'. PERFORM BDC_FIELD USING 'BDC_OKCODE' '=BU'. PERFORM BDC_FIELD USING 'BDC_CURSOR' 'MAKT-MAKTX'. PERFORM BDC_TRANSACTION USING 'MM01'. CLEAR BDCDATA. REFRESH BDCDATA. ENDLOOP .

    PERFORM CLOSE_GROUP.

    ENDFORM . "RUN_BDC

    *&---------------------------------------------------------------------**& Form basic_view*&---------------------------------------------------------------------** text*----------------------------------------------------------------------** --> p1 text*

  • 8/11/2019 Which T-code is Used Give Brief Description of All T-codes

    29/37

    ITAB-BRGEW . PERFORM BDC_FIELD USING 'MARA-GEWEI'** 'KG'.ITAB-GEWEI . PERFORM BDC_FIELD USING 'MARA-NTGEW'** '10'.ITAB-NTGEW . PERFORM BDC_FIELD USING 'MARA-VOLUM'** '10'.ITAB-VOLUM . PERFORM BDC_FIELD USING 'MARA-VOLEH'** 'CCM'.ITAB-VOLEH . PERFORM BDC_FIELD USING 'MARA-GROES'** '12X12X12'.ITAB-GROES . PERFORM BDC_DYNPRO USING 'SAPLMGMM' '4000'. PERFORM BDC_FIELD USING 'BDC_OKCODE' '/00'. PERFORM BDC_FIELD USING 'MARA-FERTH'** 'MEMO'.ITAB-FERTH . PERFORM BDC_FIELD USING 'MARA-NORMT'** 'IND. STD. DESC.'.

    ITAB-NORMT . PERFORM BDC_FIELD USING 'MARA-WRKST'** 'B'.ITAB-WRKST . PERFORM BDC_FIELD USING 'MARA-ZEINR'** 'DRG. NO'.ITAB-ZEINR . PERFORM BDC_FIELD USING 'MARA-ZEIAR'** 'DT'.ITAB-ZEIAR . PERFORM BDC_FIELD USING 'MARA-ZEIVR'** 'DV'.ITAB-ZEIVR .

    PERFORM BDC_FIELD USING 'MARA-BLATT'** 'PN'.ITAB-BLATT . PERFORM BDC_FIELD USING 'MARA-AESZN'** 'DCN'.ITAB-AESZN . PERFORM BDC_FIELD USING 'MARA-ZEIFO'** 'PF'.ITAB-ZEIFO . PERFORM BDC_FIELD USING 'MARA-BLANZ'** '1'.ITAB-BLANZ .ENDFORM. " basic_view

    *&---------------------------------------------------------------------**& Form pur_view*&---------------------------------------------------------------------** text*----------------------------------------------------------------------** --> p1 text*

  • 8/11/2019 Which T-code is Used Give Brief Description of All T-codes

    30/37

    PERFORM BDC_DYNPRO USING 'SAPLMGMM' '4000'. PERFORM BDC_FIELD USING 'BDC_OKCODE' '/00'. PERFORM BDC_FIELD USING 'MARC-EKGRP'** 'GA1'.ITAB-EKGRP . PERFORM BDC_FIELD USING 'MARC-MMSTA'** 'BP'.ITAB-MMSTA . PERFORM BDC_FIELD USING 'MARC-MFRGR'** '001'.CMFRGR . PERFORM BDC_FIELD USING 'MARA-EKWSL'** '001'.ITAB-EKWSL . PERFORM BDC_FIELD USING 'MARC-KZKRI'** 'X'.ITAB-KZKRI . PERFORM BDC_FIELD USING 'MARC-USEQU'** '3'.ITAB-USEQU . PERFORM BDC_FIELD USING 'MARC-KORDB'** 'X'.ITAB-KORDB .

    IF ITAB-OCTROI = ' '. PERFORM BDC_FIELD USING 'MARC-OCTROI' '00'. ELSE. PERFORM BDC_FIELD USING 'MARC-OCTROI'** '03'. ITAB-OCTROI . ENDIF.*--End of purchasing view

    ENDFORM. " pur_view*&---------------------------------------------------------------------**& Form mrp_view

    *&---------------------------------------------------------------------** text*----------------------------------------------------------------------** --> p1 text*

  • 8/11/2019 Which T-code is Used Give Brief Description of All T-codes

    31/37

    PERFORM BDC_FIELD USING 'MARC-MINBE'** '10'.ITAB-MINBE . PERFORM BDC_FIELD USING 'MARC-DISPO'** 'GA1'.ITAB-DISPO . PERFORM BDC_FIELD USING 'BDC_CURSOR' 'MARC-BSTRF'. PERFORM BDC_FIELD USING 'MARC-DISLS'** 'EX'.ITAB-DISLS . PERFORM BDC_FIELD USING 'MARC-BSTMA'** '10'.ITAB-BSTMA . PERFORM BDC_FIELD USING 'MARC-MABST'** '10'.ITAB-MABST . PERFORM BDC_FIELD USING 'MARC-BSTRF'** '10'.ITAB-BSTRF .

    * PERFORM BDC_DYNPRO USING 'SAPLMGMM' '4000'.* PERFORM BDC_FIELD USING 'BDC_OKCODE'* '/00'.

    PERFORM BDC_FIELD USING 'MARC-DISGR'** '0001'.CDISGR . PERFORM BDC_FIELD USING 'MARC-EKGRP'** 'GA1'.ITAB-EKGRP . PERFORM BDC_FIELD USING 'MARC-MAABC'** 'A'.ITAB-MAABC. PERFORM BDC_FIELD USING 'BDC_CURSOR'** 'MARC-MINBE'.ITAB-MINBE .

    PERFORM BDC_FIELD USING 'MARC-DISMM'** 'PD'.ITAB-DISMM . PERFORM BDC_FIELD USING 'MARC-MINBE'** '10'.ITAB-MINBE . PERFORM BDC_FIELD USING 'MARC-DISPO'** 'GA1'.ITAB-DISPO . PERFORM BDC_FIELD USING 'MARC-DISLS'** 'EX'.ITAB-DISLS .* PERFORM BDC_FIELD USING 'MARC-BSTMA'

    * '10'.* PERFORM BDC_FIELD USING 'MARC-MABST'* '10'.* PERFORM BDC_FIELD USING 'MARC-BSTRF'* '10'. PERFORM BDC_DYNPRO USING 'SAPLMGMM' '4000'. PERFORM BDC_FIELD USING 'BDC_OKCODE' '/00'. PERFORM BDC_FIELD USING 'MARC-BESKZ'** 'F'.

  • 8/11/2019 Which T-code is Used Give Brief Description of All T-codes

    32/37

    ITAB-BESKZ . PERFORM BDC_FIELD USING 'MARC-SOBSL'** '54'.CSOBSL . PERFORM BDC_FIELD USING 'MARC-LGPRO'** '1061'.ITAB-LGPRO . PERFORM BDC_FIELD USING 'MARC-USEQU'** '3'.ITAB-USEQU . PERFORM BDC_FIELD USING 'MARC-RGEKZ'** '1'.ITAB-RGEKZ . PERFORM BDC_FIELD USING 'MARC-LGFSB'** '1061'.ITAB-LGFSB . PERFORM BDC_FIELD USING 'MARC-SCHGT'** 'X'.ITAB-SCHGT . PERFORM BDC_FIELD USING 'MARC-DZEIT'** '1'.ITAB-DZEIT . PERFORM BDC_FIELD USING 'MARC-PLIFZ'** '3'.

    ITAB-PLIFZ . PERFORM BDC_FIELD USING 'MARC-WEBAZ'** '2'.ITAB-WEBAZ . PERFORM BDC_FIELD USING 'MARC-FHORI' '000'. PERFORM BDC_DYNPRO USING 'SAPLMGMM' '4000'. PERFORM BDC_FIELD USING 'BDC_OKCODE' '/00'. PERFORM BDC_FIELD USING 'MARC-PERKZ'** 'M'.ITAB-PERKZ . PERFORM BDC_FIELD USING 'BDC_CURSOR'

    'MARC-VRMOD'. PERFORM BDC_FIELD USING 'MARC-STRGR'** '10'.ITAB-STRGR . PERFORM BDC_FIELD USING 'MARC-MTVFP'** '02'.CMTVFP .

    * PERFORM BDC_DYNPRO USING 'SAPLMGMM' '4000'.* PERFORM BDC_FIELD USING 'BDC_OKCODE'* '/00'.*--End of MRP view

    ENDFORM. " mrp_view*&---------------------------------------------------------------------**& Form qm_view*&---------------------------------------------------------------------** text*----------------------------------------------------------------------** --> p1 text*

  • 8/11/2019 Which T-code is Used Give Brief Description of All T-codes

    33/37

    *--QM view PERFORM BDC_FIELD USING 'BDC_OKCODE' '=SP23'. PERFORM BDC_FIELD USING 'BDC_CURSOR' 'MAKT-MAKTX'. PERFORM BDC_DYNPRO USING 'SAPLMGMM' '4000'. PERFORM BDC_FIELD USING 'BDC_OKCODE' '=PB01'. PERFORM BDC_FIELD USING 'BDC_CURSOR' 'MARC-SSQSS'. IF QMPURFLAG = 'Y'. ELSE. PERFORM BDC_FIELD USING 'MARA-QMPUR' 'X'. ENDIF. PERFORM BDC_FIELD USING 'MARC-SSQSS' '0007'. PERFORM BDC_DYNPRO USING 'SAPLQPLS' '0100'. PERFORM BDC_FIELD USING 'BDC_CURSOR' 'RMQAM-ARGUMENT'. PERFORM BDC_FIELD USING 'BDC_OKCODE' '=NEU'. PERFORM BDC_DYNPRO USING 'SAPLQPLS' '0100'. PERFORM BDC_FIELD USING 'BDC_CURSOR'

    'RMQAM-AKTIV(01)'. PERFORM BDC_FIELD USING 'BDC_OKCODE' '=WEIT'. PERFORM BDC_FIELD USING 'RMQAM-ART(01)' '01'. PERFORM BDC_FIELD USING 'RMQAM-AKTIV(01)' 'X'. PERFORM BDC_DYNPRO USING 'SAPLMGMM' '4000'. PERFORM BDC_FIELD USING 'BDC_OKCODE' '=PB01'. PERFORM BDC_FIELD USING 'BDC_CURSOR' 'MAKT-MAKTX'. PERFORM BDC_FIELD USING 'MARC-SSQSS'

    '0007'. PERFORM BDC_DYNPRO USING 'SAPLQPLS' '0100'. PERFORM BDC_FIELD USING 'BDC_CURSOR' 'RMQAM-HPZ'. PERFORM BDC_FIELD USING 'BDC_OKCODE' '=WEIT'. PERFORM BDC_FIELD USING 'RMQAM-INSMK' 'X'. PERFORM BDC_FIELD USING 'RMQAM-HPZ' 'X'. PERFORM BDC_FIELD USING 'RMQAM-SPEZUEBER' ''. PERFORM BDC_FIELD USING 'RMQAM-QKZVERF'

    '06'. PERFORM BDC_FIELD USING 'RMQAM-DYN' ''. PERFORM BDC_DYNPRO USING 'SAPLMGMM' '4000'.

    *--End of QM view

    ENDFORM. " qm_view*&---------------------------------------------------------------------**& Form acc_cos_view

  • 8/11/2019 Which T-code is Used Give Brief Description of All T-codes

    34/37

    *&---------------------------------------------------------------------** text*----------------------------------------------------------------------** --> p1 text*

  • 8/11/2019 Which T-code is Used Give Brief Description of All T-codes

    35/37

    ** 'Z960'.* PERFORM BDC_FIELD USING 'MBEW-VPRSV'* 'V'.* PERFORM BDC_FIELD USING 'MBEW-PEINH'* '1'.* PERFORM BDC_FIELD USING 'MBEW-VERPR'* '100.00'.

    ENDFORM. " acc_cos_view*&---------------------------------------------------------------------**& Form extras_view*&---------------------------------------------------------------------** text*----------------------------------------------------------------------** --> p1 text*

  • 8/11/2019 Which T-code is Used Give Brief Description of All T-codes

    36/37

  • 8/11/2019 Which T-code is Used Give Brief Description of All T-codes

    37/37

    IF MARAFLG = 'Y' OR ITABFLG = 'Y'. ELSE. PERFORM BASIC_VIEW. ENDIF.ENDFORM. " basic_view_create

    -----------------------


Recommended