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

INTEGRATION ORACLE ADF APPLICATION TO SAP

$
0
0

Dear SDN Member,

 

We have a requirement wherein we are supposed to connect ORACLE ADF application to SAP Application.

 

Please advice if there is any cook-book to accomplish this task.

 

Thanks in anticipation.

 

~ Syed.

syed.quadri@highnooncorp.com


How do you view Transport item detail

$
0
0

I'm not sure if this belongs in this discussion group so moderators feel free to move it to a more appropriate one if necessary.

 

On more than one occasion I've had the situation where it would be good to see the item details that have been changed in a Transport.  For example, I have a transport from our DEV environment to our TST environment for table T030K.  In this table we've added some new two digit VST(Input Tax) tax codes which are assigned to a specific GL Account.  When I drill down on the transport I can see that table T030K was impacted but I can't see which two digit tax code was added or changed.  Is there a way to drill down to that item detail level within a transport?

 

Thanks in advance for your help.

 

Dan

spool id is generating without printing......

$
0
0

Hi...

 

    I am new to developed side.... I created one smartform in development system... since no printer is maintained in development system pool is not generating.....

        But in quality system, even without printer connection, the spool was getting generated for smartform ...


I  got confused with this concept, can anyone help me regarding this ..............I dont have access to quality systems....



Thanks...


Add a f4 Search help to standard program screen-field

$
0
0

I want to add f4 search help to a standard program screen-field of T.code FV50 ,on Doc header text field, please guide me i  searched google but couln't find a satisfactory answer please help me on this regard as whether I should go for field enhancement or any other technique. As I am working on standard program very first time so your help would be highly appreciated .

issue with printing program Z_RVADIN01

$
0
0

Hello Experts,

 

I am facing a funny issue and ask your help/ opinion on this:

I created a new window/ element "payer" within the form for billing-docs (output type RD00).

In this new window "payer"  the address of an alternative payer should be shown.

Existing program has been amended at subroutine entry with corresponding logic.

 

So far everything is working for Billing-docs with upto 3 pages.

If a billing doc bears more than 3 pages, the new window will not be printed.

 

I adjusted the form to display/ print the new window on every single page.

Result is that the window will be printed on every page with exception of the first page.

 

Does anybody have an idea? Program code contains a fair number of subroutines.

For this reason I do not copy it to this post.

 

Regards an thanks in advance for your input.

 

Raf

call screen in SAP Query selection screen (SQ01)

$
0
0

Hi experts , in sq01 selection screen my requirement is: for one field  when the user call F4 the small screen should be appear and when they fill

those 3 fields I should concatenate them and send it as a single field to query for process , the important thing is those 3 fields should be in '

one line beside each other , is there a way like call screen or ... in  sq01 for this issue ??

the screen that should be appear is something like this 3 fields.jpg

BAPI_PR_CREATE update field ADPRI

$
0
0


Hi Gurus,,

 

Someone knows how to fill this field when creating a PR? I am using BAPI_PR_CREATE and send the value N(3) to this field through the parameter internal table pritem and pritemx ('X') but this fields doesn't get updated.

 

1) Perhaps I am filling an incorrect value, so Which table has the list of values of this field?

2) How Can I fill this field?

 

.

.

.

.

.

wa_item-prio_requirement  = '001'

APPEND wa_item TO t_item.

 

 

.

.

.

.

wa_itemx-prio_requirement = 'X'.

APPEND wa_itemx TO t_itemx.

 

 

 

 

* Create the PR with the above data's.
  CALL FUNCTION 'BAPI_PR_CREATE'
    EXPORTING
      prheader     = wa_header
      prheaderx    = wa_headerx
    IMPORTING
      number       = pw_pr_number
    TABLES
      return       = t_return
      pritem       = t_item
      pritemx      = t_itemx

.

.

.

.

 

 

ADPRI.JPG

Logic to add 1 from 01 until 99, then go to A1->Z9

$
0
0

I have a requirement add 1 to the line no. whenever I add a record to the table. I have to search the table for the highest line number saved and add 1 to it. The trick is that when I get to 99, the next line number should be A1, and then A2 until A9. When I get to A9 I should go to B1, etc. until Z9.

 

How can I accomplish this?


Subroutine in sapscript for net due date

$
0
0

Hi,

 

This is the first time I am creating a subroutine for sapscript and I could not get it to work. I need to calculate the net due date using the baseline date plus cash discount days. But the form is just printing out 0000000. I am just trying to extract one due date here but I will have to get it for all line items then sort descending to get the latest one. Can anyone help me to see the gap why this is not working?

 

In the sapscript I have the following:

DEFINE &BASEDATE& = &REGUP-ZFBDT&

DEFINE &PAYTERMS& = &REGUP-ZBD1T&

PERFORM NET_DUE_DATE IN PROGRAM Z_SAPSCRIPT_FUNCTIONS

USING &BASEDATE&

USING &PAYTERMS&

CHANGING &DUEDATE&

ENDPERFORM

 

In program Z_SAPSCRIPT_FUNCTIONS

 

 

 

Thanks in advance!

Cholen

Need to read data from standard t.code MC.5 in zreport

$
0
0

Hi Expert,

 

I have a challenging issue. Please guide me for this issue. want to read data from standard t.code MC.5 in my z report.

 

I have attached the word file for Reference which data i want to read.

 

 

mc.5.png

mc.5   ...png

 

Need to read this data mark as yellow line: mean val. stock value

 

 

Thanks & Regards,

Atin

Syntax Error while activating a Function Module

$
0
0

Hi All,

 

I have created a Function Group then a Function Module with source code.

The TOP Include has been defined with all global variables.

There will be another Include (_F01) which will hold all the FORM and ENDFORM statements.

 

While activating whole contents under this Function Group, system is giving a syntax error in (_F01) include program.

The syntax error is about a structure to which a value is being passed.

 

The system says that particular structure is not available in the system.

But when i double click on the structure name in include program's editor, the navigation will route to that particular structure.

The structure is in active status.

 

I tried to activate whole Function group in SE80 and faced same error saying the field <> is not unknown.

 

I have activated the navigation index several times.. Still same error...!!

 

Can anyone help me to come out of this weird error??

 

Regards

Pavan

RFC Definition Errors

$
0
0

Hi All,

 

While creating a RFC function module, i have defined tables as follows.

 

RFC Table definition.PNGError.PNG

 

Is it prohibited to use table type while defining the tables in the RFC?

 

The same pattern of definition works fine while defining the normal Function Modules...

 

Any idea to overcome this issue??

 

Regards

Pavan

Bdc_OkCode Tree Expand All

$
0
0

Hi EveryBody,

 

Iurgetreeson a screenusing aBDC.


ButThreeis coming off.


Howcan weopenall in BDC ?


Best Regards,

Rasim BASCH.


How to change from inner join to for all entries?

$
0
0

Hi,

                            how to change this code from inner join to for all entries in. could you please suggest me.

SELECT a~vbeln

           a~lifsk

           a~vdatu

           a~bstzd

           a~z2brgew

           a~kunnr

           FROM vbak AS a

           INNER JOIN vbuk AS b

           ON a~vbeln = b~vbeln

           INTO CORRESPONDING FIELDS OF TABLE db_tab

           WHERE  a~vkorg IN vkorg AND

                  a~bstzd IN bstzd AND

                  a~submi IN submi AND

                  a~lifsk IN lifsp AND

                  a~vdatu IN vdatu AND

                  a~vtweg IN vtweg AND


                  a~auart NOT IN ('ZREF', 'ZRED', 'ZRES', 'ZREU' ,'ZREN', 'ZRDO', 'ZORF' ,'ZRF1', 'ZRUD') AND


                   ( ( a~lifsk <> ' ' AND

                      b~abstk <> 'C' AND

                      b~gbstk <> 'C' )   OR ( a~lifsk = ' '  AND

                                            b~cmgst = 'B'  AND

                                            a~vbtyp <> 'H' AND

                                            b~abstk <> 'C' AND

                                            b~gbstk <> 'C' AND

                                            b~gbstk <> ' ') ).

Send FM results to a mail adress

$
0
0

Hi experts,

 

I have a module function in BW which recovers process chains logs :

 

Sans titrec.png

 

Sans titre.png

 

I would like to use the table result of this FM and send it in a mail if possible in a table as in the above example and delete columns in red.

Is that possible? Is the FM SO_NEW_DOCUMENT_SEND_API1 useful in my case?

 

Thanks.

 

Amine


smartform issue on font style?

$
0
0

Dear Experts,

 

I have some issue on smartforms,i have maintain some text styles like bold ,normal & different styles(courire, times) as per my requirment when i was giving printing it come as single style(no bold no highlited) every letter as same style. please help how to resolve this?

 

Thanks

Ravilla

How to add expansion button in alv output .

$
0
0

Hi

 

I have a requirememt to add a expansion button for a delivery , on clicking on expansion button it gives all details of fields related to particular delivery .

Capture1.PNG

i want a expansion button on delivery and on clicking on that all others field values should come.

 

Capture2.PNG

 

Thanks for ur valuable comments.

Table created by ADBC class not in dictionary

$
0
0

Hi Experts,

 

 

By refering to the official document, I created a table using ADBC class.

 

REPORT demo_adbc_ddl_dml.

 

PARAMETERS  p_name TYPE c LENGTH 10 DEFAULT 'mytab'.

SELECTION-SCREEN SKIP.

PARAMETERS: p_create RADIOBUTTON GROUP grp,

            p_insert RADIOBUTTON GROUP grp,

            p_select RADIOBUTTON GROUP grp,

            p_drop   RADIOBUTTON GROUP grp.

SELECTION-SCREEN SKIP.

PARAMETERS  p_key TYPE i DEFAULT 1.

 

CLASS adbc DEFINITION.

  PUBLIC SECTION.

    CLASS-METHODS main.

  PRIVATE SECTION.

    CLASS-DATA: dbname TYPE string,

                sql TYPE REF TO cl_sql_statement,

                wa1 TYPE c LENGTH 10,

                wa2 TYPE c LENGTH 10,

                err TYPE REF TO cx_sql_exception .

    CLASS-METHODS: create RAISING cx_sql_exception,

                   insert RAISING cx_sql_exception,

                   select RAISING cx_sql_exception,

                   drop   RAISING cx_sql_exception.

ENDCLASS.

 

CLASS adbc IMPLEMENTATION.

  METHOD main.

    dbname = 'ABAP_DOCU_DEMO_' && p_name.

    TRY.

        CREATE OBJECT sql.

        IF p_create = 'X'.

          create( ).

          MESSAGE 'Create was successful' TYPE 'S'.

        ELSEIF p_insert = 'X'.

          insert( ).

          MESSAGE 'Insert was successful' TYPE 'S'.

        ELSEIF p_select = 'X'.

          select( ).

          MESSAGE 'Select was successful' TYPE 'S'.

        ELSEIF p_drop   = 'X'.

          drop( ).

          MESSAGE 'Drop was successful' TYPE 'S'.

        ENDIF.

      CATCH cx_sql_exception INTO err.

        MESSAGE err TYPE 'I' DISPLAY LIKE 'E'.

    ENDTRY.

  ENDMETHOD.

  METHOD create.

    sql->execute_ddl(

      `CREATE TABLE ` && dbname   &&

      `( val1 char(10) NOT NULL,` &&

      `  val2 char(10) NOT NULL,` &&

      `  PRIMARY KEY (val1) )` ).

  ENDMETHOD.

  METHOD insert.

    DO 100 TIMES.

      wa1 = sy-index.

      wa2 = sy-index ** 2.

      sql->execute_update(

       `INSERT INTO ` && dbname && ` ` &&

       `VALUES ('` && wa1 && `','` && wa2 && `')` ).

    ENDDO.

  ENDMETHOD.

  METHOD select.

    DATA: result TYPE REF TO cl_sql_result_set,

          msg    TYPE c LENGTH 30,

          key    TYPE c LENGTH 10,

          dref   TYPE REF TO data,

          rc     TYPE i.

    key = p_key.

    result = sql->execute_query(

      `SELECT val1, val2 ` &&

      `FROM ` && dbname && ` ` &&

      `WHERE val1 = ` && `'` && key && `'` ).

    GET REFERENCE OF wa1 INTO dref.

    result->set_param( dref ).

    GET REFERENCE OF wa2 INTO dref.

    result->set_param( dref ).

    rc = result->next( ).

    IF rc > 0.

      WRITE: 'Result:' TO msg,

             wa1 TO msg+10,

             wa2 TO msg+20.

    ELSE.

      msg = 'No entry found'.

    ENDIF.

    result->close( ).

    MESSAGE msg TYPE 'I'.

  ENDMETHOD.

  METHOD drop.

    sql->execute_ddl(

     `DROP TABLE ` && dbname ).

  ENDMETHOD.

ENDCLASS.

 

START-OF-SELECTION.

  adbc=>main( ).

 

But I found that I can't find the table with T-code se16 or se11.

 

May I know where the table placed? The table created by ADBC not a table in dictionary?

 

 

 

Thanks in advance.

Reading data for multiple employees using LDB

$
0
0

Hi Friends,

 

I am working on payslip, i am not getting data for more than employees

Its working for one employee perfectly.

 

Please find below piece of code.

 

START-OF-SELECTION.
GET PERNR.
CLEAR: GS_PERNR.
GS_PERNR = PERNR.
PERFORM GET_FORPERIOD.  "  Getting for period
CLEAR: T500P, T501T,
        T528T, T001, LS_PDET.
REFRESH LT_PDET.
PERFORM GET_PDATA.   " getting personel and company data
CLEAR: LS_BANKDET,
        LV_BNKA.
PERFORM GET_BANKDATA. " Getting bank data
CLEAR: LV_ABSN_BALAN.
PERFORM GET_ABSENCEDATA. " Getting absence data(Leave data)
CLEAR: MOLGA,
        LV_SEQNR,
        LV_BETRG, RT.
REFRESH: LT_DEDU,
          LT_EARN,
          LT_WGTXT,
          LT_WGTXT_DEDN,
          LT_WGTFINAL, LT_WGTFINAL_DEDU.

PERFORM GET_PAYROLLDATA USING PERNR-PERNR " Getting data from rt.
                               PN-BEGDA
                               PN-ENDDA.


END-OF-SELECTION.
PERFORM CALL_FORM.  " Calling smartform

Workflow for Downpayment at header level

$
0
0

Hi,

 

I have a scenario like

 

Step 1 :  A Purchase order will be raised for a vendor with multiple line items with down payment maintained at header level.

Step 2  : Down payment request will be raised through ME2DP which invokes F-47 in the back ground . Business requires to send a mail to the approver                   once Down payment request is saved  at header level i.e., with total down payment amount of all items instead of sending mails item wise.

 

Currently business is triggering workflow 's at Item level of down payment request and they want to change it to header level.

 

I was wondering is there possibility of  triggering work flow  at header level for down payment request .

 

Please advise on this.

 

Thanks,

 

 

 

 

 

Viewing all 8332 articles
Browse latest View live


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