Fill field kna1-ps001 using transaction xd01

Hi,
I need to fill some additional information in Customers Master Data . This is information is some descrition about customer
I checked table kna1 and seems to me that fields KNA1-PS001 and KNA1-PS002 will hit my purposes. The question is that these fields are not available using XD01 even if i lok for it in SPRO "Define Account Groups with Screen Layout (Customers)
Best Regards
                  João Fernandes

Hi
In the user-exit SAPMF02D you can try to change the value by field-symbols:
FIELD-SYMBOLS: <AUFSD> TYPE ANY.
DATA: KNA1_AUFSD(10) VALUE '(SAPMF02D)KNA1-AUSFD'.
IF SY-TCODE+2(2) = '01'.
  ASSIGN (KNA1_AUFSD) TO <AUFSD>.     
  <AUFSD> = 'X'.
ENDIF.
Max

Similar Messages

  • To capture customer # while creating using  transaction XD01

    Hello..Requirement is to capture 'Sold-To' customer # which gets generated internally by SAP. I tried exit 'EXIT_SAPMF02D_001' but not successful. I am using transaction 'XD01' to create 'Sold-to' customer and I need to capture internally generated customer # before KNA1 gets updated.
    PLEASE ADVISE!.
    THANKING YOU IN ADVANCE!.
    FELLOW ABAPER.

    Normally the number is generated internally. This updates KNA1. For what purpose ru trying to use it. If u want to check it u will not be able to it. But, when u try to save it, u can check it using the corresponding user exit and use it internally for ur purpose. I dont exactly remember the user exit for save, but u can use it in it.
    Pl. reward points if this is what u needed.

  • REGARDING FILLING ENTRIES TO ZTABLE USING TRANSACTION.

    Respected Gurus,
    I want to ask for question :
    I have to extract data/ some fields  from tables  MSEG, MAKT ,LFA1 and put it into my ztable using  my own TCODE.
    aLSO TO DISPLAY DATA ON SCREEN (SE51) .
    when the data is displayed and entered , there shud be a message generated to generate a unique id no.
    kindly send me code for same scenario or guide me.
    Waitng.
    thanks and regards.

    Hello,
    its better to make a module pool or a report which will fetch data or records into your internal table and then by using insert query you can append the records to your z table.
    Thanks & Regards,
    Nitin

  • How to hide command fied using transaction iview

    Hi All,
    Is there any way to hide command box (transactional field) in Portal using transactional iview ?
    I have searched in sdn forum, it is possible via IAC iview using application parameters ~headerOKcode = 1.
    Since our ITS is not configured properly and it is continously giving Browser errors (Object expected, 'wgu_global_eventhandler' is null or not an object).
    So.........I can;t go ahead with IAC Iview.
    I suspect.....anyone has gone through this problem and experts has a solution with transactional iviews to hide those command boxes.
    Appreciate your inputs in this regards.
    Thanks,
    Anil Kumar

    Try this in 'Application Parameters' field '&~NOHEADEROKCODE=1'

  • System asking me to fill MANDATORY fields, even I used EXIT-COMMAND for F3

    HI Experts,
    issue- there is mandatory field in the screen, so, am using the folllowing code, system asking me to fillup the mandatory field.
    then, i used exit-command, but, still its asking me to fill the mandatory fiels???????????
    code is,
    process after input.
    ***Exit command
    module cancel at exit-command.
    module cancel.
    module user_command_9001.
    module cancel input.
    case: ok_code.
    when wa_con_back.
    clear ok_code.
    set screen 0.
    leave screen.
    when wa_con_exit.
    clear ok_code.
    set screen 0.
    leave screen.
    endcase.
    endmodule. " cancel INPUT
    thanq

    I am not sure but try making a specific module for your exit handling, for instance:
    module do_exit at exit-command.
    module cancel
    module user_command_9001.
    Hope it helps you,
    Bert

  • Extending field catalog of application ME using transaction NACE

    Hello,
    I extended the field catalog of application ME using Transaction NACE. I inserted material field as ZZMATNR but I couldn't find this field at IMG->Materials Management->Inventory Management and Physical Inventory->Output Determination->Maintain Condition Tables->Output: Create Conditions Table ->FieldCatalog.
    How can I use ZZMATNR?
    Thank you.
    Yasar Unalp

    Follow the OSS note below (OSS note - 39462) you need to follow the same for your field.
    Summary
    Symptom
    In the message determination for purchasing, the field catalog in Transaction M/60 should be enhanced, for example, with a field for the user ID.
    Other terms
    USNAM, condition table
    Reason and Prerequisites
    The communication structure to be maintained can be taken from table T681Z. Table T681Z can be displayed with Transaction SE16.Use 'B' for message determination and application EF for purchase order.
    Thus the structure for purchase orders to be maintained is KOMKBEA.
    The following section describes how to include field 'User ID' in the structure.If other applications or fields are used, the following example can be used in a modified form.
    Solution
    1. You must include field ZZUSNAM in communication structure KOMKBEA.In this structure there is an include that is provided for additional fields.In this Include KOMKBZ you must include the field with the name ZZUSNAM. ERNAM can be used as the domain in this case.
    2. The same field must also be included in structure KOMB in Include KOMBZ (the same procedure as under point 1).
    3. In table T681F use Transaction SM31 with key B, EF to add the same field. You can do this by overwriting an existing field.
                  As of Release 4. 0 you can use view V_T681F in Transaction SM30 for that purpose. Enter usage 'B', your application and field group '001'.
    4. In the message determination, the system runs perform USEREXIT_KOMKBEA_FILL. This perform is in program RVCOMFZZ.
    The source code should be changed as follows:
    FORM_USEREXIT_KOMKBEA_FILL.
    COM_KBEA-ZZUSNAM = SY-UNAME.

  • Possible to use JavaScript to Import Data from XML file to pre-fill fields?

    Hi,
    I have a dynamic fill-in PDF that I want to "pre-fill" internally in my company before sending out to users who will change any pre-filled fields necessary and answer questions we did not already answer.
    We do not have LiveCycle Reader Extensions, but we can use Acrobat to import data from an XML document to pre-fill the named fields.  Is it possibly to do this task using folder-level Javascript or some other method?  I can look into this, and post my findings, but I'd like to know if it's possible or if I need to use a different programming language.

    Hi,
    I am afraid that solution was for a specific client and I can't share it. If I get a chance I will mock up an example, but this wont be for a while. From memory it was just a straight importData method. This would normally fail silently in a non-certified form, but when the form is digitally signed/certified, it works without a hitch.
    Good luck,
    Niall

  • Text Field is Blank in Transaction F-28

    Hi Experts,
    There is a requirement to add to the current layout the text field in F-28 transaction code. However, when I add them as an administrator, The text field is blank. We already maintained the text field in both Accounting Document Line item and in the Invoice but still the text field is blank. Where can we find the value of text field in the documents shown in F-28. Are there any configuration to do this?

    Ok. Currently they had this problem on tagging which Invoices to be considered for payment clearance in tcode F-28. Their current process is every Ship-To-Party, they also equate it as one project code with the location of the project information,etc. They are using this ever since the first implementation. So in their process, they go to FBL5N to check those invoices created before going to F-28. In FBL5N, I incorporated the text field there (filled by user-exit display) which also came from the accounting document. But it's not correct since they are using the ship-to-party value in F-28.
    So we tested by manual input directly the Ship-To-Party Code to Acc Doc Line Item Text Field. It went to FBL5N, as showing the value there but in F-28 it is not showing.
    Do you have any solution for this? Since during payment in F-28, I think these entries are already Acc Doc Entries and Ship-To-Party is not reflected here but Payer only (coming from the invoice).

  • BDC code for transaction XD01

    Hi all,
    Can anyone of you provide me complete BDC code for Transaction XD01.
    An early reply will be highly appreciated and would be rewarded.
    Regards,
    Neeraj

    Hi Prakash
    hope this code will help you.
    ABAP BDC SAMPLE CODE XD01
    Table/Structure declarations. *
    TABLES : KNA1. "Customer master
    Constants declarations. *
    CONSTANTS : C_MODE VALUE 'A',
    C_UPDATE VALUE 'S',
    C_X VALUE 'X',
    C_SESS TYPE APQI-GROUPID VALUE 'ZCUSTOMER', "Session Name
    C_XD01 LIKE TSTC-TCODE VALUE 'XD01'.
    Variable declarations. *
    DATA : V_FNAME(15) VALUE SPACE, " Name of file to be created
    V_FAILREC TYPE I, " No of failed records
    V_MSG(255), " Message Text
    V_ERRREC TYPE I, " No of failed records
    V_LINES TYPE I, " No of records
    V_BANKS(15), " Table column BANKS
    V_BANKL(15), " Table column BANKL
    V_BANKN(15), " Table column BANKN
    V_TIDX(2) TYPE N. " Table row index
    *-- FLAG DECLARATIONS
    DATA : FG_DATA_EXIST VALUE 'X', " Check for data
    FG_SESSION_OPEN VALUE ' '. " Check for Session Open
    *-- MACRO DEFINITIONS
    *-- Macro for BANKS
    DEFINE BANKS.
    CLEAR V_BANKS.
    CONCATENATE 'KNBK-BANKS(' &1 ')' INTO V_BANKS.
    CONDENSE V_BANKS.
    END-OF-DEFINITION.
    *-- Macro for BANKL
    DEFINE BANKL.
    CLEAR V_BANKL.
    CONCATENATE 'KNBK-BANKL(' &1 ')' INTO V_BANKL.
    CONDENSE V_BANKL.
    END-OF-DEFINITION.
    *-- Macro for BANKN
    DEFINE BANKN.
    CLEAR V_BANKN.
    CONCATENATE 'KNBK-BANKN(' &1 ')' INTO V_BANKN.
    CONDENSE V_BANKN.
    END-OF-DEFINITION.
    Structures / Internal table declarations *
    *-- Structure to hold BDC data
    TYPES : BEGIN OF T_BDCTABLE.
    INCLUDE STRUCTURE BDCDATA.
    TYPES END OF T_BDCTABLE.
    *-- Structure to trap BDC messages
    TYPES : BEGIN OF T_MSG.
    INCLUDE STRUCTURE BDCMSGCOLL.
    TYPES : END OF T_MSG.
    *-- Structure to trap ERROR messages
    TYPES : BEGIN OF T_ERR_MSG,
    MESSAGE(255),
    END OF T_ERR_MSG.
    *--Internal table to store flat file data
    DATA : BEGIN OF IT_KNA1 OCCURS 0,
    KUNNR LIKE KNA1-KUNNR,
    KTOKD LIKE T077D-KTOKD,
    NAME1 LIKE KNA1-NAME1,
    SORTL LIKE KNA1-SORTL,
    ORT01 LIKE KNA1-ORT01,
    PSTLZ LIKE KNA1-PSTLZ,
    LAND1 LIKE KNA1-LAND1,
    SPRAS LIKE KNA1-SPRAS,
    LZONE LIKE KNA1-LZONE,
    END OF IT_KNA1.
    *--Internal table to store bank details
    DATA : BEGIN OF IT_BANK OCCURS 0,
    BANKS LIKE KNBK-BANKS,
    BANKL LIKE KNBK-BANKL,
    BANKN LIKE KNBK-BANKN,
    END OF IT_BANK.
    *-- Internal table to hold BDC data
    DATA: IT_BDCDATA TYPE STANDARD TABLE OF T_BDCTABLE WITH HEADER LINE,
    *-- Internal Table to store ALL messages
    IT_MSG TYPE STANDARD TABLE OF T_MSG WITH HEADER LINE,
    *-- Internal Table to store error messages
    IT_ERR_MSG TYPE STANDARD TABLE OF T_ERR_MSG WITH HEADER LINE.
    Selection Screen. *
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERS : P_FLNAME(15) OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : R_LIST RADIOBUTTON GROUP GRP1.
    SELECTION-SCREEN COMMENT 5(20) TEXT-003.
    PARAMETERS : R_SESS RADIOBUTTON GROUP GRP1.
    SELECTION-SCREEN COMMENT 30(20) TEXT-004.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK B2.
    Event:Initialization *
    INITIALIZATION.
    AT Selection Screen. *
    AT SELECTION-SCREEN.
    Event: Start-of-Selection *
    START-OF-SELECTION.
    V_FNAME = P_FLNAME.
    PERFORM GET_DATA.
    PERFORM GET_BANKDATA.
    PERFORM GENERATE_DATASET.
    Event: End-of-Selection *
    END-OF-SELECTION.
    IF FG_DATA_EXIST = ' '.
    MESSAGE I010 WITH TEXT-009.
    EXIT.
    ENDIF.
    PERFORM GENERATE_BDCDATA.
    PERFORM DISPLAY_ERR_RECS.
    Event: top-of-page
    TOP-OF-PAGE.
    FORM DEFINITIONS *
    *& Form get_data
    Subroutine to get the data from mard
    --> p1 text
    <-- p2 text
    FORM GET_DATA.
    CALL FUNCTION 'UPLOAD'
    EXPORTING
    CODEPAGE = ' '
    FILENAME = 'C:\XD01.TXT'
    FILETYPE = 'DAT'
    ITEM = ' '
    FILEMASK_MASK = ' '
    FILEMASK_TEXT = ' '
    FILETYPE_NO_CHANGE = ' '
    FILEMASK_ALL = ' '
    FILETYPE_NO_SHOW = ' '
    LINE_EXIT = ' '
    USER_FORM = ' '
    USER_PROG = ' '
    SILENT = 'S'
    IMPORTING
    FILESIZE =
    CANCEL =
    ACT_FILENAME =
    ACT_FILETYPE =
    TABLES
    DATA_TAB = IT_KNA1
    EXCEPTIONS
    CONVERSION_ERROR = 1
    INVALID_TABLE_WIDTH = 2
    INVALID_TYPE = 3
    NO_BATCH = 4
    UNKNOWN_ERROR = 5
    GUI_REFUSE_FILETRANSFER = 6
    OTHERS = 7
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    IF IT_KNA1[] IS INITIAL.
    FG_DATA_EXIST = ' '.
    ENDIF.
    ENDFORM. " get_data
    *& Form GENERATE_DATASET
    text
    --> p1 text
    <-- p2 text
    FORM GENERATE_DATASET.
    MESSAGE I010 WITH 'OPENING FILE IN APPLICATION SERVER'.
    **--Creating a data set in application server
    OPEN DATASET V_FNAME FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    **---Transfering data from internal table to dataset
    MESSAGE I010 WITH 'TRANSFERING DATA FROM INETERAL TABLE TO THE FILE'.
    LOOP AT IT_KNA1.
    TRANSFER IT_KNA1 TO V_FNAME.
    ENDLOOP.
    **--Closing the dataset
    MESSAGE I010 WITH 'CLOSING THE FILE'.
    CLOSE DATASET V_FNAME.
    ENDFORM. " GENERATE_DATASET
    *& Form BDC_DYNPRO
    text
    -->P_0467 text
    -->P_0468 text
    FORM BDC_DYNPRO USING PROGRAM DYNPRO.
    CLEAR IT_BDCDATA.
    IT_BDCDATA-PROGRAM = PROGRAM.
    IT_BDCDATA-DYNPRO = DYNPRO.
    IT_BDCDATA-DYNBEGIN = 'X'.
    APPEND IT_BDCDATA.
    ENDFORM.
    *& Form BDC_FIELD
    text
    -->P_0472 text
    -->P_0473 text
    FORM BDC_FIELD USING FNAM FVAL.
    IF NOT FVAL IS INITIAL.
    CLEAR IT_BDCDATA.
    IT_BDCDATA-FNAM = FNAM.
    IT_BDCDATA-FVAL = FVAL.
    APPEND IT_BDCDATA.
    ENDIF.
    ENDFORM.
    *& Form GENERATE_BDCDATA
    text
    --> p1 text
    <-- p2 text
    FORM GENERATE_BDCDATA.
    REFRESH IT_KNA1.
    Opening dataset for reading
    OPEN DATASET V_FNAME FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    Reading the file from application server
    DO.
    CLEAR: IT_KNA1,IT_BDCDATA.
    REFRESH IT_BDCDATA.
    READ DATASET V_FNAME INTO IT_KNA1.
    IF SY-SUBRC <> 0.
    EXIT.
    ELSE.
    Populate BDC Data for Initial Screen
    PERFORM : BDC_DYNPRO USING 'SAPMF02D' '0100',
    BDC_FIELD USING 'BDC_CURSOR' 'RF02D-KUNNR',
    BDC_FIELD USING 'BDC_OKCODE' '/00',
    BDC_FIELD USING 'RF02D-KUNNR' IT_KNA1-KUNNR,
    BDC_FIELD USING 'RF02D-KTOKD' IT_KNA1-KTOKD.
    Populate BDC Data for Second Screen
    PERFORM : BDC_DYNPRO USING 'SAPMF02D' '0110',
    BDC_FIELD USING 'BDC_CURSOR' 'KNA1-NAME1',
    BDC_FIELD USING 'BDC_OKCODE' '/00',
    BDC_FIELD USING 'KNA1-NAME1' IT_KNA1-NAME1,
    BDC_FIELD USING 'KNA1-SORTL' IT_KNA1-SORTL,
    BDC_FIELD USING 'KNA1-ORT01' IT_KNA1-ORT01,
    BDC_FIELD USING 'KNA1-PSTLZ' IT_KNA1-PSTLZ,
    BDC_FIELD USING 'KNA1-LAND1' IT_KNA1-LAND1,
    BDC_FIELD USING 'KNA1-SPRAS' IT_KNA1-SPRAS.
    Populate BDC Data for Third Screen
    PERFORM : BDC_DYNPRO USING 'SAPMF02D' '0120',
    BDC_FIELD USING 'BDC_CURSOR' 'KNA1-LZONE',
    BDC_FIELD USING 'BDC_OKCODE' '/00',
    BDC_FIELD USING 'KNA1-LZONE' IT_KNA1-LZONE.
    Populate BDC Data for Fourth Screen
    PERFORM : BDC_DYNPRO USING 'SAPMF02D' '0125',
    BDC_FIELD USING 'BDC_CURSOR' 'KNA1-NIELS',
    BDC_FIELD USING 'BDC_OKCODE' '/00'.
    Populate BDC Data for Table control for bank details.
    V_TIDX = '01'.
    LOOP AT IT_BANK.
    BANKS V_TIDX.
    BANKL V_TIDX.
    BANKN V_TIDX.
    PERFORM : BDC_DYNPRO USING 'SAPMF02D' '0130',
    BDC_FIELD USING 'BDC_CURSOR' V_BANKN,
    BDC_FIELD USING 'BDC_OKCODE' '=ENTR',
    BDC_FIELD USING V_BANKS IT_BANK-BANKS,
    BDC_FIELD USING V_BANKL IT_BANK-BANKL,
    BDC_FIELD USING V_BANKN IT_BANK-BANKN.
    V_TIDX = V_TIDX + 1.
    ENDLOOP.
    PERFORM : BDC_DYNPRO USING 'SAPMF02D' '0130',
    BDC_FIELD USING 'BDC_CURSOR' V_BANKS,
    BDC_FIELD USING 'BDC_OKCODE' '=UPDA'.
    CALL TRANSACTION C_XD01 USING IT_BDCDATA
    MODE C_MODE
    UPDATE C_UPDATE
    MESSAGES INTO IT_MSG.
    IF SY-SUBRC <> 0.
    *--In case of error list display
    IF R_LIST = C_X.
    V_ERRREC = V_ERRREC + 1.
    PERFORM FORMAT_MESSAGE.
    IT_ERR_MSG-MESSAGE = V_MSG.
    APPEND IT_ERR_MSG.
    CLEAR : V_MSG,IT_ERR_MSG.
    ENDIF.
    *--In case of session log
    IF R_SESS = C_X.
    *-- In case of transaction fails.
    IF FG_SESSION_OPEN = ' '.
    FG_SESSION_OPEN = C_X.
    PERFORM BDC_OPEN_GROUP.
    ENDIF. " IF FG_SESSION_OPEN = ' '.
    *-- Insert BDC Data..
    PERFORM BDC_INSERT_DATA.
    ENDIF. " IF R_SESS = C_X.
    ENDIF. " IF SY-SUBRC <> 0.
    ENDIF. " IF SY-SUBRC <> 0.
    ENDDO.
    Closing the dataset
    CLOSE DATASET V_FNAME.
    *-- Close the session if opened
    IF FG_SESSION_OPEN = C_X.
    PERFORM BDC_CLOSE_GROUP.
    CALL TRANSACTION 'SM35'.
    ENDIF.
    ENDFORM. " GENERATE_BDCDATA
    *& Form BDC_OPEN_GROUP
    text
    --> p1 text
    <-- p2 text
    FORM BDC_OPEN_GROUP.
    CALL FUNCTION 'BDC_OPEN_GROUP'
    EXPORTING
    CLIENT = SY-MANDT
    DEST = FILLER8
    GROUP = C_SESS
    HOLDDATE = FILLER8
    KEEP = C_X
    USER = SY-UNAME
    RECORD = FILLER1
    IMPORTING
    QID =
    EXCEPTIONS
    CLIENT_INVALID = 1
    DESTINATION_INVALID = 2
    GROUP_INVALID = 3
    GROUP_IS_LOCKED = 4
    HOLDDATE_INVALID = 5
    INTERNAL_ERROR = 6
    QUEUE_ERROR = 7
    RUNNING = 8
    SYSTEM_LOCK_ERROR = 9
    USER_INVALID = 10
    OTHERS = 11
    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. " BDC_OPEN_GROUP
    *& Form BDC_INSERT_DATA
    text
    --> p1 text
    <-- p2 text
    FORM BDC_INSERT_DATA.
    CALL FUNCTION 'BDC_INSERT'
    EXPORTING
    TCODE = C_XD01
    POST_LOCAL = NOVBLOCAL
    PRINTING = NOPRINT
    TABLES
    DYNPROTAB = IT_BDCDATA
    EXCEPTIONS
    INTERNAL_ERROR = 1
    NOT_OPEN = 2
    QUEUE_ERROR = 3
    TCODE_INVALID = 4
    PRINTING_INVALID = 5
    POSTING_INVALID = 6
    OTHERS = 7
    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. " BDC_INSERT_DATA
    *& Form BDC_CLOSE_GROUP
    text
    --> p1 text
    <-- p2 text
    FORM BDC_CLOSE_GROUP.
    CALL FUNCTION 'BDC_CLOSE_GROUP'
    EXCEPTIONS
    NOT_OPEN = 1
    QUEUE_ERROR = 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.
    ENDFORM. " BDC_CLOSE_GROUP
    *& Form FORMAT_MESSAGE
    text
    --> p1 text
    <-- p2 text
    FORM FORMAT_MESSAGE.
    CLEAR V_LINES.
    DESCRIBE TABLE IT_MSG LINES V_LINES.
    READ TABLE IT_MSG INDEX V_LINES.
    CLEAR V_MSG.
    CALL FUNCTION 'FORMAT_MESSAGE'
    EXPORTING
    ID = IT_MSG-MSGID
    LANG = IT_MSG-MSGSPRA
    NO = IT_MSG-MSGNR
    V1 = IT_MSG-MSGV1
    V2 = IT_MSG-MSGV2
    V3 = IT_MSG-MSGV3
    V4 = IT_MSG-MSGV4
    IMPORTING
    MSG = V_MSG
    EXCEPTIONS
    NOT_FOUND = 1
    OTHERS = 2.
    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. " FORMAT_MESSAGE
    *& Form DISPLAY_ERR_RECS
    text
    --> p1 text
    <-- p2 text
    FORM DISPLAY_ERR_RECS.
    LOOP AT IT_ERR_MSG.
    WRITE: / IT_ERR_MSG-MESSAGE.
    ENDLOOP.
    ENDFORM. " DISPLAY_ERR_RECS
    *& Form GET_BANKDATA
    text
    --> p1 text
    <-- p2 text
    FORM GET_BANKDATA.
    IT_BANK-BANKS = 'AD'.
    IT_BANK-BANKL = '1000'.
    IT_BANK-BANKN = 'S.B A/C'.
    APPEND IT_BANK.
    IT_BANK-BANKS = 'AD'.
    IT_BANK-BANKL = 'CITY'.
    IT_BANK-BANKN = 'CURR. A/C'.
    APPEND IT_BANK.
    IT_BANK-BANKS = 'AD'.
    IT_BANK-BANKL = 'H001'.
    IT_BANK-BANKN = 'S.B A/C'.
    APPEND IT_BANK.
    reward if help.

  • Set default value on field KNA1-AUFSD when creating Customer

    Hi,
    How to set default value on field KNA1-AUFSD when creating customer master using XD01/VD01?
    I have tried user exit SAPMF02D, but all KNA1 values are read only.
    Thx

    Hi
    Try to implement an enhancement option in include MF02DFEX. (at the beginning before call to FM CALL CUSTOMER-FUNCTION '001'.).
    and Initialize the value for KNA1-AUFSD.
    In this Include you can see that there is a call for CALL CUSTOMER-FUNCTION '001'.
    So even you test/check the initialized value for field KNA1-AUFSD is updated by putting a break point in this function module after implementation of your enhancement SAPMF02D.
    Regards,
    Dwaraka.S

  • Creation of New T Code Using Transaction Variant

    Hi,
    I have created a new T code (YMM02) by using transaction variant. The new T code created is copy of MM02.
    I have changed the material by using new T code (YMM02) which is created using Transaction variant. Once I complete the Transaction (i.e. have done changes in material master and save) it is going to original T Code (MM02). Requirement is it should be in the same T Code (YMM02), so that I can edit the material again with the new T Code (YMM02)
    Regards,
    Hari.

    Hi Hariprasad,
    If restricting certain fields using field selection option is not suitable for you, you can go ahead with the option Screen Variend
    Also refer the link
    [https://wiki.sdn.sap.com/wiki/display/Snippets/Transaction%20Variant%20-%20A%20Step%20by%20Step%20Guide%20for%20Creation]

  • Posting goods receipt  using transaction MB1C

    Hi
    When I  posting goods receipt  using transaction MB1C , I am getting following error
    Account  310000 for Transo/event key BSX is a A control Account.
    Please tell me the solution for this error.
    kalai.

    Dear Suriya,
    If your issue is still un-resolved, Just try with:
    T. Code: FS00
    Key-in your G/L Account - 310000 & Company Code, in respective fields; go to
    Tab: Create/bank/interest
    Here, you will find a Box: Post automatically only. Enable the box (check-mark the box) for GR/IR clearing account.
    Jope, this may help in some ways.
    Best Regards,
    Amit.
    Note: In continuation to others' suggestion, I'll also suggest to consult FI-Personnel, at your end.

  • REG: Creation of Warehouse product using transaction /SCWM/MAT1

    Hi,
    My requirement is to create Warehouse Products using Transaction /SCWM/MAT1 , I am using BAPI_PRDSRVAPS_SAVEMULTI2 , but I cound't able to process this because I did find Warehouse number in this BAPI, Am I using correct BAPI, if that is the case let me know the BAPI for warehouse product data,
    Thanks
    RK

    Hi,
    There is no specific list, it depends completely on the condition types that have been configured in your system.
    The answer you were given was a good one and gave you as much detail as you could expect.
    If you are having a particular problem or issue then let us know and we will do all that we can to help.
    The easiest way to find out the "list" is to simply click on the "possible entries" tab at the right of the field. !!!!!!!!!!!
    Steve B

  • Using transaction code KEAI for CO-PA to FI validation

    I wanted to see if anyone has experience using transaction code KEAI (Analysis of Value Flow FI-COPA).  I know there is also transaction code KEAT for SD to CO-PA to FI validation.  However for our needs KEAI seems a bit more user friendly.  I have not really found any documenation on KEAI online or in SAP help.  The program for this transaction code is RKE_RECONCILIATION_FI.  Does anyone know the key difference between KEAI and KEAT.  Any input you have would be appreciated.

    KEAI is analyzes all value flows to CO-PA as against KEAT which deals with Transfer of Billing Documents.
    The reconciliation covers all record types - A to I and Z (PA postings only)
    You can restrict the report for components like - billing, CO objects, FI Docs
    You can see the result by all documents, documents only with delta, documents only with delta to CO-PA
    You can display summarized report if required and expand.
    The output shows delta in detailed columns like - Account / Source Document / PA Value Field, FI Value, Document Value, PA Relevant Value, CO-PA Value, FI Doc. Delta, PA Doc Delta, Crcy.
    The report is collapsible - company code > account > Document > Value Field

  • Adding custom field in shopping cart transaction

    Hello,
    I have done the following things apart from enhancing the INCL_EEW_PD_ITEM_CSF and INCL_EEW_PD_ITEM_CSF_SC structures.
    1) Executed BBP_DYNPROS_GENERATE for SAPLBBP_PDH_SEARCH and SAPLBBP_PDH_CUF
    2) As I realised later that CI_BBP_ITEM_SC and CI_BBP_ITEM were present in the system locally I tried one by one both the methods as follows.
    -Deleting the EEW includes and adding the tracking number in the above CI structures and activating the modify_screen badi with dispaly and input fields as X
    -As this didnt work, I deleted the CI structures and again created EEW inputs so that only EEW structures are present for the customer fields.
    but even then it didnt work. furthermore, I am not able to debug the implementation of badi BBP_CUF_BADI_2 at all from the bbpsc03 transaction.
    2) Carefully followed the notes
    sapnote458591 User defined fields preparation and use
    sapnote672960 User defined fields2
    3) Checked the notes (but didnt apply these as they dont precisely pertain to the item fields of bbpsc03)
    sapnote1016297 Header customer fields are not displayed in bbpsc02
    sapnote1034079 customer fields not visible in shopping wizard
    4) Additionally checking the notes  
    sapnote537392 CUF Cust Filds on the 'Default value for items'
    sapnote710474 CUF.User-defined fields on search screen
    Could you please guide me with any more inputs?
    thank you very much
    rita

    Hi,
    How about note 954391 - Customer fields are not displayed?
    Also check whether you haev extended the proper sructures in note 672960.You need to extend INCL_EEW_PD_ITEM_CSF_SC & INCL_EEW_PD_SEARCH_ITM_CSF_SC for customer fields on item overview .
    You can also use the BADI to BBP_CUF_BADI_2, method MODIFY_SCREEN, table ET_FIELDS, XINPUT = 'X' and XDISPLAY = 'X'. to control the display of the custom fields.
    Also after running the BBP_DYNPROS_GENERATE program,you can restart the SRM server and check.
    BR,
    Disha.
    Pls reward points for useful answers.

Maybe you are looking for