Quantcast
Channel: SCN: Message List - ABAP Development
Viewing all 10425 articles
Browse latest View live

Re: Trigger error message in SRM Backend PO

$
0
0

Hi, Athreya.

Thanks for your reply.

BADI BBP_CREATE_BE_PO_NEW would be usefull if it wasn't the fact that it doesn't have a message error table as a parameter.

 

At the moment I could manage to display the message error that I've wanted, but the PO is still been sent to XI. Do you know how to interrup this process?

 

Thanks in advance.


Re: Searchhelp for timestamp field

$
0
0

Hi,

 

I don't remember, but I think it is something like this:

 

parameters :

p_ts type timestamp MATCHCODE OBJECT CPE_TIMESTAMP.

Re: values not populating thru Matchcode Object

$
0
0

Hello priya,

 

have you mentioned the displayed values field(whic you select after pressing F4) in search help as EXPORT parameter????

 

 

Thanks

Sabyasachi

Re: Contract fields

$
0
0

I  was looking for vendor contracts, so I have used EKKO table with document category = K, which are contracts.

 

Thanks!

Re: Catalog extract

Vendor Invoice hold

$
0
0

Hi All,

 

I need to capture history of blocks on an invoice? Field BSIK-ZLSPR gives only the latest hold. Is there a way to capture history of holds?

Can table CDHDR be useful? If so, how I can get extract those values from it?

 

Thanks!

What programming language to learn after ABAP?

$
0
0

Hi All,

     Well I am kind of getting bored with ABAP / Workflow ! I was wondering what programming language should I learn to keep myself busy. What I am looking for is something new (it can be a an extn for ABAP/ SAP too) but something really new age. May be something like Mobile Apps for SAP. May be a new language all together. But again since SAP is bread and butter it would be nice if it can be used in someway or another in SAP too

Any ideas?

 

P.S.: I have 8 years of SAP experience so I am not noob !

Global Object Attribute local type

$
0
0

I created a local type in the class.

 

Loc. Definitions/Implementations

types:

   BEGIN OF ty_escal,

       level    TYPE i,

       urg(4)   TYPE n,

       high(4TYPE n,

       med(4)   TYPE n,

       low(4)   TYPE n,

   END OF ty_escal.

 

Now I want to create a private attribute of the class using this type.

 

I also would like to define a table type and create an private table of the same type.

 

What am I missing?


calculate key figure in table with loop

$
0
0

I am stuck in a logic problem andI  have delivery tomorrow.
I have  four columns, one keyfig.
I want to apply the following formula for account.
A4000 = A3000 - A2000 - A1000.
The number of costcentre and MPN are unlimited and it is a many to many relation.

Please give me a sample code, or at least pseudo code.


Table A
CostCenter MPN Account  Keyfig.
16509         45      A1000     20
16509         46      A1000     60
16509         45      A2000     30
16509         45      A3000    100
16509         46      A1000     60
16510         45      A3000     60
16510         45      A1000     20
16510         45      A2000     30
16510         45      A3000     60


Result should be:
Table B
CostCenter MPN Account  Keyfig.
16509           45      A4000       50
16509           46      A4000       -20
16510           45      A4000        10

Not Possible to Add and Change Reservation at the same time

$
0
0

Good Day Gurus,

 

          I'm currently developing a web based material reservation (mb21/mb22) .

         I'm using both bapi's of MB_RESERVATION_CHANGE_INTERNAL and BAPI_RESERVATION_CHANGE

          but both of them are returning a message of Not Possible to Add and Change Reservation at the same time

         whenever i tried to to add and update records in reservation,.

 

any solution? 

Get Material and batch of a specific classification

$
0
0

Hi all,

 

I'm creating a delta extractor for Material and related batch and plant.

 

When I modify a classification from MSC2N transaction on CDHDR/CDPOS I can't find information about Material/Batch/Plant modified, but I need to find it, is there any BAPI/FM/Tables that can help me?

 

Thank you

BAPI_PBSRVAPS_GETDETAIL2 Usage in ECC ?

$
0
0

Hi Experts,

 

I have a requirement in ABAP to read the planning book data from APO System.and for which i am using BAPI  - BAPI_PBSRVAPS_GETDETAIL2 .

Can you please provide me some sample code to use BAPI - BAPI_PBSRVAPS_GETDETAIL2  in ECC System

 

And what all parameters i need to pass as import parameters?

 

Or is there any other way i can achieve this functionality ?

 

Thanks in Advance !!

 

Regards

Rahul

Re: BAPI_PBSRVAPS_GETDETAIL2 Usage in ECC ?

Re: Open dataset with Windows linefeed in 4.6C

$
0
0

Thanx Christian,

Thanx Gaurab,

 

Yours answers have been very valuable.

 

In fact I have inserted following code in my dev :

 

  constants: gc_tab     type x value '09',   " TABulation

             gc_lf(1)   type x value '0A',   " CR  Chariot Return

             gc_cr(1)   type x value '0D',   " LF  (not in TEXT MODE !)

             gc_crlf(2) type x value '0D0A'. " CRLF

 

 

  loop at itab .

 

<Some transformations any type -> Char var>

 

      clear : gs_output , ls_output .

      concatenate  '"'  lv_matnr '",'

                   '"' lv_kunnr  '",'

                       lv_datem   ','

                       lv_qty_hl

                       gc_cr        " Chariot return

              into ls_output-lines.

      if sy-subrc eq 0 .

        gs_output = ls_output .

      endif.

      append gs_output to gt_output .

    endloop .

 

<....>

  OPEN DATASET p_filout FOR OUTPUT IN TEXT MODE  MESSAGE lv_msg .

 

    LOOP AT gt_output INTO gs_output .

      TRANSFER gs_output TO p_filout .

    ENDLOOP .

 

 

    CLOSE DATASET p_filout .

Re: Migrate History / CDHDR & CDPOS

$
0
0

Hi Micky,

 

How did you solve your issue? I'm trying to migrate some BP modification data, too.

Thanks,

 


Cristian


Receiver port come as Blank for EDI inbound

$
0
0

Hi All ,

 

 

While receiving inbound idocs from MQ series receiver port information is coming as blank.

 

I have created partner profile with partner type 'LI' and partner no 'A2532'  and inbound parameter added ORDRSP

and partner role as VN.

 

Control record of Idoc i can see below informations..

 

Receipient informatio

 

1. Port  is blank

2. Partner Number DV3CLNT100

3.Partner type LI

 

Sender Information

 

1.Port  ZEDI'

2.Partner Number A2532

3.Partner Role  : VN

 

So because of receiver port come as blank , Idoc failed and getting status as 56.

 

Please help me on this

 

 

Regards,

Sijil K P.

Re: BAPI error: X is not allowed for LOGIC_SWITCH-PRICING

$
0
0

Solved myself.

 

For future use, posting solution which i found.

 

Because of 'CONSTANTS: possible_pricing(4) VALUE' BCG'. in the include LZ_FG_V45ATOP, getting an error from the below code,

 

*  if i_logic_switch-pricing cn possible_pricing.

*    sy-msgty = 'E'.

*    sy-msgid = 'V4'.

*    sy-msgno = '246'. "&1 nicht zulässig für LOGIC_SWITCH-PRICING

*    sy-msgv1 = i_logic_switch-pricing.

*    perform fehler_ausgeben tables return

*                            using 'LOGIC_SWITCH  '

*                                  '0'.

*    exit.

*  endif.

 

Copied FMs - BAPI_SALESORDER_CHANGE', SD_SALES_DOCU_MAINTAIN & SD_SALESDOCUMENT_CHANGE.

 

And commented above code in FM 'SD_SALES_DOCU_MAINTAIN'. Now ZBAPI_SALESORDER_CHANGE is working fine for pricing type X.

 

Thanks for all your above responses.


Re: How to balance multiple currencies? Is there FI/CO function module for this?

$
0
0

Hi Luka,

 

Can you please elaborate what you meant by "Balance multiple currencies"?

Re: internal table max,min for particular value

$
0
0

Hi Karthik,

 

I don't think it is possible without using loops(do, loop, while etc.). If you get something, do share the solution

Re: Receiver port come as Blank for EDI inbound

Viewing all 10425 articles
Browse latest View live