Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all 8332 articles
Browse latest View live

F4 help on module pool

$
0
0

Hi All,

 

I am creating a module pool program. i have two fields in the screen and need to have F4 help only for the first field.

the hitlist of the F4 help will have two fields(the fields which are in the screen). when the user selects the data

from hitlist then the first field of hitlist should be populated to the first field of the screen and second field of the

hitlist should be populated to the second field of the screen. I can use the function module

"F4IF_INT_TABLE_VALUE_REQUEST" to display the hitlist( hitlist containing both the fields in the screen)

of the first field and populate the first field, but how can i automatically populate the second field with the data from

the hitlist of the 1st fields F4 help.

 

Thanks in advance.

Mohanarangan.


INSERT LINES into HASHED Table

$
0
0

Hi,

 

I have 2 hashed tables of same structure. These 2 hashed tables contain different data.

I want to insert lines of one hashed table to the other hashed table.

 

Usually for reading a record from a hashed table having 1 entry or 100000 entries, it takes same time.

In case of INSERT LINES, will it take the same time for Inserting 1 line or 1000000 lines?

 

Thanks & Regards,

Adithya M.

Error: pxa_no_free_space

$
0
0

Hi all,

 

  While doing transaction in IDES server it is found that transaction (T.Code: VL32N)  is being stopped and error as coming as - pxa_no_free_space.

 

Pls guide how to overcome.

 

Rgds/ S. Das

Order to choose: BAdI, Customer Exits, Implicit and Explicit Enhancements

$
0
0

Hi,

 

Which of the enhancements techniques should I look first? Is this?

 

1- Kernel BAdI

2- Classic BAdI

3- Customer Exits

4- Explicit Enhancement

5- Implicit Enhancement

What would be the correct priority order to verify that's available?

Could you please provide the links from where you got the information?

 

Thank you!

How to Get Customer Number (KUNNR) from Document No (BELNR)

$
0
0

Hi Friends ,

 

     I need to find the customer number (KUNNR) from Accounting Document Number (BELNR).

     In our case Documents are posted using transaction F-34.

 

     Please let me know any relationship between tables ?

 

 

 

   thanks and regards

    shahab

Screen elements translation

$
0
0

Hello,

 

Can anyone suggest a FM that translates screen elements?

 

Thank you

How can i go directly the spot from where the issue is raising in CONDITIONS tab?

$
0
0

Hello

 

I got a ticket from functional analyst that "While creating the invoice 9000000000 why Item --> CONDITIONS --> Tax line's UoM is coming wrong bcz the business is expecting the UoM as L/Litre, but its coming wrong as UGL/Gallon" as shown in the attached picture

 

I debugged a lot standard SAP code like 4 to 5 hours, but no clue at all (i did like..... i took the screen number of conditions tab, then went to PBO, put the break-point in PBO, then went to keep on debugging just before pressing CONDITIONS tab)!

 

Like these earlier also i got tickets about the wrong data coming in the CONDITIONS tab of sales order or invoice, that time, i asked my lead to pass the ticket to somebody else, who is ABAP expert and seems going further these kind of tickets gonna come

 

Pls. let me know,

 

1) how can i figure it out like these kind (CONDITIONS) of issues?

2) instead of debugging hours together, where should i put my attension, i mean, which is main prog./which is include/which is routine to save the time?

3) generically(CONDITIONS tab issues), how can i go directly to the spot/location in the prog. (Main/include/routine) from where this issue is coming?

 

Thank you

 

COND.jpg

ABAP to XML Simple Transformation - only one line of a string value is passed

$
0
0

Hi,

 

The goal of the extract program that I'm currently developing is to extract employee photos from ArchiveLink and corresponding data (e.g. name and date of birth), convert to XML and download it. I have created a transformation program to follow the template of the system that will utilize the XML file. I pass an internal table containing the employee data and the photo converted from binary into base64 string in a string field to the transformation program--like...

 

types: begin of ty_person,

             firstname type pa0002-vorna,

             lastname type pa0002-nachn,

             birthdate type pa0002-gbdat,

             photo type string,

          end of ty_person.

 

data: gt_data type standard table of ty_person.

 

The issue that I'm encountering at the moment is that when the internal table gt_data has more than 1 record, the resulting XML file doesn't seem to have the contents of field photo from record 2 onwards. Only record 1's data is complete and for the succeeding records, only firstname, lastname and birthdate shows. The resulting XML when parsed looks like this--

 

<Employees count = "4">

     <EmployeeData>

          <FirstName>Joe</FirstName>

          <LastName>Bloggs</LastName>         

          <Birthdate>1960-01-01</Birthdate>

           <Photo>  very long string of data here                                                                                                                   </Photo>

     </EmployeeData>

     <EmployeeData>

          <FirstName>John</FirstName>

          <LastName>Doe</LastName>         

          <Birthdate>1976-03-26</Birthdate>

          <Photo>  blank                                                                                                                                                   </Photo>

     </EmployeeData>

     <EmployeeData>

          <FirstName>Jane</FirstName>

          <LastName>Doe</LastName>         

          <Birthdate>1978-03-31</Birthdate>

          <Photo>  blank                                                                                                                                                   </Photo>

     </EmployeeData>

     <EmployeeData>

          <FirstName>Test</FirstName>

          <LastName>Person</LastName>         

          <Birthdate>1970-10-18</Birthdate>

          <Photo>  blank                                                                                                                                                   </Photo>

     </EmployeeData>

</Employees>

 

My transformation program is coded like this--

 

<tt:transform xmlns:tt="http://www.sap.com/transformation-templates">

<tt:root name="EMPDATA"/>

  <tt:template>

      <tt:loop ref=".EMPDATA" name="line">
        <FirstName>
          <tt:value ref="$line.firstname" />
        </FirstName>
        <LastName>
          <tt:value ref="$line.lastname" />
        </LastName>

        <Birthdate>
          <tt:value ref="$line.birthdate" />
        </Birthdate>

        <Photo>
          <tt:value ref="$line.photo" />
        </Photo>

      </tt:loop>
  </tt:template>

</tt:transform>

 

I am certain that PHOTO field of records 2-4 is not empty and converted properly into base64. I debugged and can confirm that $line.photo is not empty for records 2-4. Does anyone have a clue why the value of PHOTO field only works for the first record and what can be done to correct the issue? Do Simple Transformations have limitations on string values?

 

Your help is very much appreciated!

 

Cheers,

Jocelyn


material ageing

$
0
0

hi,

i have created an alv z-program, which should be modified with ageing bucket specifications in selection screen.

when i give materialno ,plant,storagelocation,date,aging bucket values in input selection the output has to display

as

we wil calculate posting date through mkpf compare that date with keydate(input date) the diff between two dates is below

first bucket days in stock1 

 

in stock2 material quantity between first bucket days and second bucket days.

stock3 quantity between second and third.

stock4 between third and fourth.

stock5 quantity above fourth bucket days.

 

depending on material document capture posting date after that depending on movement type we have to add or substract quantity.

if u r using movement type check t156 table.

 

the output will match the values with material details quantity in tcode mb5b.

 

in stock1 quantity of material below the

matno   descrpton   plant   storloc  vendorstock 

 

 

Here is my coding, and would like to know coding for ageing bucket.

 

TABLES: STKO,

        MAST,

        STPO,

        MAKT,

        MARD,

        MARM,

        MSSL,

        CRHD,

        CRCO,

        AFVC,

        AFKO,

        AFRU,

        MBEW,

        MSEG,

        MKPF.

 

 

TYPES: BEGIN OF TY_STKO,

       STLNR TYPE STKO-STLNR,

       STLAL TYPE STKO-STLAL,

       STKOZ TYPE STKO-STKOZ,

       BMENG TYPE STKO-BMENG,

       BMEIN TYPE STKO-BMEIN,

       END OF TY_STKO.

DATA: I_STKO TYPE TABLE OF TY_STKO,

      WA_STKO TYPE TY_STKO.

 

TYPES: BEGIN OF TY_MAST,

       STLNR TYPE MAST-STLNR,

       STLAL TYPE MAST-STLAL,

       MATNR TYPE MAST-MATNR,

       WERKS TYPE MAST-WERKS,

       END OF TY_MAST.

DATA: I_MAST TYPE  TABLE OF TY_MAST,

      WA_MAST TYPE  TY_MAST.

 

TYPES: BEGIN OF TY_STPO,

       STLNR TYPE STPO-STLNR,

       STLKN TYPE STPO-STLKN,

       STPOZ TYPE STPO-STPOZ,

       IDNRK TYPE STPO-IDNRK,

       POSNR TYPE STPO-POSNR,

       MEINS TYPE STPO-MEINS,

       MENGE TYPE STPO-MENGE,

       END OF TY_STPO.

DATA: I_STPO TYPE TABLE OF TY_STPO,

      WA_STPO TYPE TY_STPO.

 

TYPES: BEGIN OF TY_MAKT,

       MATNR TYPE MAKT-MATNR,

       MAKTX TYPE MAKT-MAKTX,

       END OF TY_MAKT.

DATA: I_MAKT TYPE TABLE OF TY_MAKT,

      WA_MAKT TYPE TY_MAKT.

 

TYPES: BEGIN OF TY_MARD,

       MATNR TYPE MARD-MATNR,

       WERKS TYPE MARD-WERKS,

       LGORT TYPE MARD-LGORT,

       LABST TYPE MARD-LABST,

       END OF TY_MARD.

DATA: I_MARD TYPE TABLE OF TY_MARD,

      WA_MARD TYPE TY_MARD.

 

*DATA: BEGIN OF TY_MARM OCCURS 100.

*         INCLUDE STRUCTURE EMARM.

*  DATA:MATNR TYPE MARM-MATNR,

*        END OF TY_MARM.

 

TYPES: BEGIN OF TY_MSLB,

       MATNR TYPE MSLB-MATNR,

       LBLAB TYPE MSLB-LBLAB,

       END OF TY_MSLB.

DATA: I_MSLB TYPE TABLE OF TY_MSLB,

      WA_MSLB TYPE TY_MSLB.

 

TYPES: BEGIN OF TY_CRHD,

       OBJID TYPE CRHD-OBJID,

       END OF TY_CRHD.

DATA: I_CRHD TYPE TABLE OF TY_CRHD,

      WA_CRHD TYPE TY_CRHD.

 

*TYPES: BEGIN OF TY_CRCO,

*       OBJID TYPE CRCO-OBJID,

*

*       KOSTL TYPE CRCO-KOSTL,

*       END OF TY_CRCO.

*DATA: I_CRCO TYPE TABLE OF TY_CRCO,

*      WA_CRCO TYPE TY_CRCO.

 

TYPES: BEGIN OF TY_AFVC,

       ARBID TYPE AFVC-ARBID,

       AUFPL TYPE AFVC-AUFPL,

       END OF TY_AFVC.

DATA: I_AFVC TYPE TABLE OF TY_AFVC,

      WA_AFVC TYPE TY_AFVC.

 

TYPES: BEGIN OF TY_AFKO,

       AUFPL TYPE AFKO-AUFPL,

       AUFNR TYPE AFKO-AUFNR,

       END OF TY_AFKO.

DATA: I_AFKO TYPE TABLE OF TY_AFKO,

      WA_AFKO TYPE TY_AFKO.

 

*TYPES: BEGIN OF TY_AFRU,

*       AUFNR TYPE AFRU-AUFNR,

*

*       END OF TY_AFRU.

*DATA: I_AFRU TYPE TABLE OF TY_AFRU,

*      WA_AFRU TYPE TY_AFRU.

 

TYPES:BEGIN OF TY_MBEW,

      MATNR TYPE MBEW-MATNR,

      BWTAR TYPE MBEW-BWTAR,

      LBKUM TYPE MBEW-LBKUM,

      END OF TY_MBEW.

DATA: I_MBEW TYPE TABLE OF TY_MBEW,

      WA_MBEW TYPE TY_MBEW.

 

TYPES: BEGIN OF TY_MSEG,

       MATNR TYPE MSEG-MATNR,

       WERKS TYPE MSEG-WERKS,

       LGORT TYPE MSEG-LGORT,

       MBLNR TYPE MSEG-MBLNR,

       ZEILE TYPE MSEG-ZEILE,

       BWART TYPE MSEG-BWART,

       BWTAR TYPE MSEG-BWTAR,

       MENGE TYPE MSEG-MENGE,

       MEINS TYPE MSEG-MEINS,

       END OF TY_MSEG.

DATA: I_MSEG TYPE TABLE OF TY_MSEG,

      WA_MSEG TYPE TY_MSEG.

 

TYPES: BEGIN OF TY_MKPF,

       MBLNR TYPE MKPF-MBLNR,

       BUDAT TYPE MKPF-BUDAT,

       END OF TY_MKPF.

DATA: I_MKPF TYPE TABLE OF TY_MKPF,

      WA_MKPF TYPE TY_MKPF.

 

 

TYPES: BEGIN OF F_TAB,

       STLNR TYPE STKO-STLNR,

       STLAL TYPE STKO-STLAL,

       STKOZ TYPE STKO-STKOZ,

       BMENG TYPE STKO-BMENG,

       BMEIN TYPE STKO-BMEIN,

       MATNR TYPE MAST-MATNR,

       WERKS TYPE MAST-WERKS,

       STLKN TYPE STPO-STLKN,

       STPOZ TYPE STPO-STPOZ,

       IDNRK TYPE STPO-IDNRK,

       POSNR TYPE STPO-POSNR,

       MEINS TYPE STPO-MEINS,

       MENGE TYPE STPO-MENGE,

       MAKTX TYPE MAKT-MAKTX,

       LGORT TYPE MARD-LGORT,

       LABST TYPE MARD-LABST,

       LBLAB TYPE MSLB-LBLAB,

       OBJID TYPE CRHD-OBJID,

       KOSTL TYPE CRCO-KOSTL,

       ARBID TYPE AFVC-ARBID,

       AUFPL TYPE AFVC-AUFPL,

       AUFNR TYPE AFKO-AUFNR,

       BWTAR TYPE MBEW-BWTAR,

       LBKUM TYPE MBEW-LBKUM,

       MBLNR TYPE MSEG-MBLNR,

       ZEILE TYPE MSEG-ZEILE,

       BWART TYPE MSEG-BWART,

       BUDAT TYPE MKPF-BUDAT,

       END OF F_TAB.

DATA: I_TAB TYPE TABLE OF F_TAB,

      WA_TAB TYPE F_TAB.

 

*DATA: IT_MAST TYPE STANDARD TABLE OF MAST.

 

DATA: p_slab1(3) type c.

*&---------------------------------------------------------------------*

*&  Include           ZP00L

*&---------------------------------------------------------------------*

TYPE-POOLS: SLIS.

 

DATA: IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,

      WA_FIELDCAT TYPE SLIS_FIELDCAT_ALV.

 

*SELECTION SCREEN

SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.

SELECT-OPTIONS: MATERIAL FOR MAST-MATNR .

SELECT-OPTIONS: PLANT FOR MAST-WERKS OBLIGATORY.

SELECT-OPTIONS: LOCATION FOR MARD-LGORT OBLIGATORY.

*  parameters: p_date  like sy-datum .

parameters:   DATE like MKPF-BUDAT .

SELECTION-SCREEN END OF BLOCK B1.

 

SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.

SELECTION-SCREEN BEGIN OF LINE.

selection-screen comment 4(32) text-003 for field p_slab2.

PARAMETER:  p_slab2 like p_slab1 no-display,

            p_slab3 like p_slab1,

            p_slab4 like p_slab1,

            p_slab5 like p_slab1,

            p_slab6 like p_slab1.

SELECTION-SCREEN END OF Line.

SELECTION-SCREEN END OF BLOCK B2.

 

 

START-OF-SELECTION.

  PERFORM STAT.

 

END-OF-SELECTION.

  PERFORM CAT.

  PERFORM OUTPUT.

 

 

 

 

*&---------------------------------------------------------------------*

*&  Include           ZSQLS

*&---------------------------------------------------------------------*

FORM STAT.

  SELECT MATNR WERKS LGORT MBLNR ZEILE BWART BWTAR MENGE MEINS

                               FROM MSEG INTO TABLE I_MSEG

                               WHERE MATNR IN MATERIAL AND

                               WERKS IN PLANT AND

                               LGORT IN LOCATION.

  IF NOT I_MSEG IS INITIAL.

    SELECT MBLNR BUDAT FROM MKPF INTO TABLE I_MKPF

                             FOR ALL ENTRIES IN I_MSEG

                             WHERE MBLNR = I_MSEG-MBLNR.

  ENDIF.

 

  SELECT STLNR STLAL MATNR WERKS FROM MAST

                                 INTO TABLE I_MAST WHERE

                                 MATNR IN MATERIAL AND WERKS IN PLANT.

 

  IF SY-SUBRC = 0.

    SELECT MATNR WERKS LGORT LABST FROM MARD

                                 INTO TABLE I_MARD

                                 FOR ALL ENTRIES IN I_MAST

                                 WHERE LGORT IN LOCATION AND MATNR =

                                 I_MAST-MATNR.

    SELECT MATNR MAKTX FROM MAKT

                               INTO TABLE I_MAKT

                               FOR ALL ENTRIES IN I_MAST

                               WHERE MATNR = I_MAST-MATNR.

    SELECT MATNR LBLAB FROM MSLB

                                INTO TABLE I_MSLB

                                FOR ALL ENTRIES IN I_MAST

                                WHERE  MATNR = I_MAST-MATNR.

 

 

    SELECT STLNR STLAL STKOZ BMENG BMEIN FROM STKO

                               INTO TABLE I_STKO

                               FOR ALL ENTRIES IN I_MAST

                               WHERE STLNR = I_MAST-STLNR.

    IF NOT I_STKO IS INITIAL.

      SELECT STLNR STLKN STPOZ IDNRK POSNR MEINS MENGE FROM STPO

                                 INTO TABLE I_STPO

                                 FOR ALL ENTRIES IN I_STKO

                                 WHERE STLNR = I_STKO-STLNR.

    ENDIF.

  ENDIF.

  CLEAR WA_MSEG.

  SORT:I_MAKT BY MATNR.

  LOOP AT I_MSEG INTO WA_MSEG.

    WA_TAB-MATNR = WA_MSEG-MATNR.

    WA_TAB-WERKS = WA_MSEG-WERKS.

    WA_TAB-LGORT = WA_MSEG-LGORT.

    CLEAR:WA_MAKT.

    READ TABLE I_MAKT INTO WA_MAKT WITH KEY MATNR = WA_MSEG-MATNR BINARY SEARCH.

    IF SY-SUBRC = 0.

      WA_TAB-MAKTX = WA_MAKT-MAKTX.

    ENDIF.

    CLEAR:WA_MSLB.

    READ TABLE I_MSLB INTO WA_MSLB WITH KEY MATNR = WA_MSEG-MATNR BINARY SEARCH.

    IF SY-SUBRC = 0.

      WA_TAB-LBLAB = WA_MSLB-LBLAB.

    ENDIF.

    APPEND WA_TAB TO I_TAB.

 

  ENDLOOP.

ENDFORM.                    "STAT

 

 

*&---------------------------------------------------------------------*

*&      Form  CAT

*&---------------------------------------------------------------------*

*       text

*----------------------------------------------------------------------*

FORM CAT.

  WA_FIELDCAT-COL_POS = 1.

  WA_FIELDCAT-FIELDNAME = 'MATNR'.

  WA_FIELDCAT-KEY = 'X'.

  WA_FIELDCAT-JUST = 'C'.

  WA_FIELDCAT-SELTEXT_M = 'MATERIAL NUMBER'.

  WA_FIELDCAT-DDICTXT = 'M'.

  WA_FIELDCAT-OUTPUTLEN = 18.

 

  APPEND WA_FIELDCAT TO IT_FIELDCAT.

  CLEAR WA_FIELDCAT.

 

  WA_FIELDCAT-COL_POS = 2.

  WA_FIELDCAT-FIELDNAME = 'MAKTX'.

  WA_FIELDCAT-KEY = 'X'.

  WA_FIELDCAT-JUST = 'C'.

  WA_FIELDCAT-SELTEXT_M = 'DESCRIPTION'.

  WA_FIELDCAT-DDICTXT = 'M'.

  WA_FIELDCAT-OUTPUTLEN = 20.

 

  APPEND WA_FIELDCAT TO IT_FIELDCAT.

  CLEAR WA_FIELDCAT.

 

  WA_FIELDCAT-COL_POS = 3.

  WA_FIELDCAT-FIELDNAME = 'WERKS'.

  WA_FIELDCAT-KEY = 'X'.

  WA_FIELDCAT-JUST = 'C'.

  WA_FIELDCAT-SELTEXT_M = 'PLANT'.

  WA_FIELDCAT-DDICTXT = 'M'.

  WA_FIELDCAT-OUTPUTLEN = 6.

 

  APPEND WA_FIELDCAT TO IT_FIELDCAT.

  CLEAR WA_FIELDCAT.

 

  WA_FIELDCAT-COL_POS = 4.

  WA_FIELDCAT-FIELDNAME = 'LGORT'.

  WA_FIELDCAT-KEY = 'X'.

  WA_FIELDCAT-JUST = 'C'.

  WA_FIELDCAT-SELTEXT_M = 'STORAGE LOCATION'.

  WA_FIELDCAT-DDICTXT = 'M'.

  WA_FIELDCAT-OUTPUTLEN = 18.

  APPEND WA_FIELDCAT TO IT_FIELDCAT.

  CLEAR WA_FIELDCAT.

 

  WA_FIELDCAT-COL_POS = 5.

  WA_FIELDCAT-FIELDNAME = 'LBLAB'.

  WA_FIELDCAT-KEY = 'X'.

  WA_FIELDCAT-JUST = 'C'.

  WA_FIELDCAT-SELTEXT_M = 'VENDOR STOCK'.

  WA_FIELDCAT-DDICTXT = 'M'.

  WA_FIELDCAT-OUTPUTLEN = 15.

 

  APPEND WA_FIELDCAT TO IT_FIELDCAT.

  CLEAR WA_FIELDCAT.

 

ENDFORM.                    "CAT

 

 

*&---------------------------------------------------------------------*

*&      Form  OUTPUT

*&---------------------------------------------------------------------*

*       text

*----------------------------------------------------------------------*

FORM OUTPUT.

  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

   EXPORTING

*       I_INTERFACE_CHECK                 = ' '

*       I_BYPASSING_BUFFER                = ' '

*       I_BUFFER_ACTIVE                   = ' '

     I_CALLBACK_PROGRAM                = SY-CPROG

*       I_CALLBACK_PF_STATUS_SET          = ' '

*       I_CALLBACK_USER_COMMAND           = ' '

*       I_CALLBACK_TOP_OF_PAGE            = ''

*       I_CALLBACK_HTML_TOP_OF_PAGE       = ' '

*       I_CALLBACK_HTML_END_OF_LIST       = ' '

*       I_STRUCTURE_NAME                  =

*       I_BACKGROUND_ID                   = ' '

*       I_GRID_TITLE                      =

*       I_GRID_SETTINGS                   =

*       IS_LAYOUT                         =

     IT_FIELDCAT                       = IT_FIELDCAT

*       IT_EXCLUDING                      =

*       IT_SPECIAL_GROUPS                 =

*       IT_SORT                           =

*       IT_FILTER                         =

*       IS_SEL_HIDE                       =

*       I_DEFAULT                         = 'X'

*       I_SAVE                            = ' '

*       IS_VARIANT                        =

*       IT_EVENTS                         =

*       IT_EVENT_EXIT                     =

*       IS_PRINT                          =

*       IS_REPREP_ID                      =

*       I_SCREEN_START_COLUMN             = 0

*       I_SCREEN_START_LINE               = 0

*       I_SCREEN_END_COLUMN               = 0

*       I_SCREEN_END_LINE                 = 0

*       I_HTML_HEIGHT_TOP                 = 0

*       I_HTML_HEIGHT_END                 = 0

*       IT_ALV_GRAPHICS                   =

*       IT_HYPERLINK                      =

*       IT_ADD_FIELDCAT                   =

*       IT_EXCEPT_QINFO                   =

*       IR_SALV_FULLSCREEN_ADAPTER        =

*     IMPORTING

*       E_EXIT_CAUSED_BY_CALLER           =

*       ES_EXIT_CAUSED_BY_USER            =

    TABLES

      T_OUTTAB                          = I_TAB.

*     EXCEPTIONS

*       PROGRAM_ERROR                     = 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.                    "OUTPUT

Add new tab in QM01

$
0
0

Dear Experts,

 

I have requirement to add new tab in QM01.In other forum,they specify how to add sub-tab.

But i want to add new tab with new logic.

I know there is XQQM Function Group through which we done coding...

 

Please give me full steps how to add...

 

Regards,

Jyoti

Is there any possibility to avoid creating business partners of type "group"?

$
0
0

Hello colleagues,

 

I have to ensure, that we only can create business partners of type "person" and "oragnization" in our IS-U (Release SAP ECC 6.0, SAP_ABA and SAP_BASIS 701 level 0007).

How can I manage to avoid the choice "group" by craeating a business partner with transaction "bp" and "fpp1"? Is there any possibility to customize it? Can I use the BDT? Will I have to implement some Enhancements?

 

Thanks for your constructive answers.

 

Best regards,

Markus

How to HR create applicant using FM, suggest with code

$
0
0

Hi

It seems to be simple but i tired with FM HR_INFOTYPE_OPERATION & BAPI_APPLICANT_CREATE but didnt get results.

 

It goes all these screen one by one and end with Recruitment Additional Data since it required enddate and there is no way to pass via BAPI_APPLICANT_CREATE . i just need new applicant number ... please suggest

 

Applicant Actions

Applications

Organizational Assignment

Personal Data

Addresses

Vacancy Assignment

Recruitment Additional Data

 

Regards

Ali

appending '#' in text file while uploading through CG3z

$
0
0

Hi ,

I created a text file with following parameters

filename: abc
Save as type : Text documents
Encoding : UTF-8

I tried  to upload the abc text file from my PC  to a path in  AL11 tcode  through CG3Z tcode . It got uploaded,but

all lines in the text file ended with '#' which i do not want.Kindly help to avoid '#' character after end of the line.

 

data is as follows after uploading text file in application server.

2|01.01.2013|31.01.2013|Remarks|jp|||#

2|01.01.2013|31.01.2013|Remarks|jp|||#

2|01.01.2013|31.01.2013|Remarks|jp|||#

2|01.01.2013|31.01.2013|Remarks|jp|||#

error in submit program 'rqmell20'.

$
0
0

Hi All,

 

I have called program rqmell20 for Tcode 'QM12' using submit. It is working for notification, date fields but when I pass the values to check boxes in notif. status block (Outstndng , Postponed ) it gives me error: '

No objects were selected

 

Message no. IH047

 

 

System Response

No objects could be selected that met your selection criteria.

'.

 

Below is my code.

 

TABLES: rqmqmel.

 

data: DY_IAR value 'X'.

SELECT-OPTIONS: qmnum FOR rqmqmel-qmnum NO-DISPLAY,

                qmdat FOR rqmqmel-qmdat NO-DISPLAY.

**parameters : DY_IAR as checkbox.

**DY_IAR = 'X'.

 

qmnum-low = '2000014'.

qmnum-high = ''.

qmnum-sign = 'I'.

qmnum-option = 'EQ'.

APPEND qmnum.

 

qmdat-low = ''.

qmdat-high = ''.

qmdat-sign = 'I'.

qmdat-option = 'BT'.

APPEND qmdat.

 

SUBMIT rqmell20 WITH qmnum IN qmnum

                with qmdat in qmdat

                with DY_IAR eq 'X'

    AND RETURN.

 

 

Kindly help.

 

 

 

Thanks n Regards,

Ashmita.

Update table LAGP

$
0
0

Hi All,

 

I have a requirement to update field LAGP-IDATU. For that I am looking for a standard SAP function module or BAPI.

My customer does not allow to write code for direct update on table LAGP. Please suggest any method to do it. Its urgent.

 

Best regards,

Chinmay


how can i create an executable workflow base on ws12300111 for leave request that can be executed without using ptarq from a function module i want to implement simple leave request scenario how to make it using function modules or bapis

$
0
0

how to creae a customized executable workflow

Create Service Master using BAPI

$
0
0

hi all,

          My requirement is to create service master. The issue is my system is ECC5 so i don't have BAPIS like  BAPI_SERVICE_CREATE ,BAPI_SERVICE_CHANGE. Any other BAPIs are there for creating Service Master in ECC5?

 

Thanks

vicky

date format error while uploading from excel

$
0
0

Hi Experts,

 

I have created a report in which I am uploading data from excel into the internal table. In excel the date format is dd/mm/yyyy. But in SAP, the date format is different. How to change the SAP's date format??

 

In excel I can manage to change it into dd.mm.yyyy. Please guide?

 

 

 

 

Regards

Purnand

BAPI for FBA7 with down payment request usage

$
0
0

I need to create a vender down payment using down payment request.

Using BDC is a nightmare because I have to select the open down payment requests, it's impossible.

 

Do you know any way to do this via BAPI?

 

Tks

BAPI_ENTRYSHEET_CREATE Error SE149 Service quantity exceeds quantity in purchase order

$
0
0

Hello

 

I'm having a problem using BAPI_ENTRYSHEET_CREATE using a purchase order with purchase contract (outline agreement) items for creating a service entry sheet acceptance. I use BAPI_PO_GETDETAIL for copying the PO structures into the BAPI_ENTRYSHEET_CREATE structures but I keep getting the error "SE149 Service XXXX: quantity A exceeds quantity B in purchase order".

 

I tried to create the service entry sheet through tx. ML81N and it works fine. Here's my code:

 

 

  <DATA declarations omitted, same as BAPI's>

 

  CALL FUNCTION 'BAPI_PO_GETDETAIL'

    EXPORTING

      purchaseorder    = i_ebeln

      items            = 'X'

      services         = 'X'

    IMPORTING

      po_header        = ls_pohdr

    TABLES

      po_items         = lt_poitem

      po_item_services = lt_posrv

      return           = lt_poret.

 

* PO items

  LOOP AT lt_poitem INTO ls_poitem.

 

 

    ls_hdr-pckg_no = ls_poitem-pckg_no.

    ls_hdr-short_text = 'Automatic Acceptance'.

    ls_hdr-po_number = ls_poitem-po_number.

    ls_hdr-po_item = ls_poitem-po_item.

    ls_hdr-doc_date = sy-datum.

    ls_hdr-post_date = sy-datum.

    ls_hdr-acceptance = 'X'.

 

 

*   Main service lines

    LOOP AT lt_posrv INTO ls_posrv WHERE pckg_no = ls_poitem-pckg_no AND

                                         outl_ind = 'X'.

 

      MOVE-CORRESPONDING ls_posrv TO ls_srv.

      APPEND ls_srv TO lt_srv.

 

*     Secondary service lines

      LOOP AT lt_posrv2 INTO ls_posrv2 WHERE pckg_no = ls_posrv-subpckg_no.

        MOVE-CORRESPONDING ls_posrv2 TO ls_srv.

        APPEND ls_srv TO lt_srv.

      ENDLOOP.

 

    ENDLOOP.

 

    CALL FUNCTION 'BAPI_ENTRYSHEET_CREATE'

      EXPORTING

        entrysheetheader   = ls_hdr

      IMPORTING

        entrysheet         = ld_entrysheet

      TABLES

        return             = lt_ret

        entrysheetservices = lt_srv.

 

  ENDLOOP.

 

********

 

  Regards,

Viewing all 8332 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>