Quantcast
Channel: SCN : Unanswered Discussions - ABAP Development
Viewing all 8768 articles
Browse latest View live

requirement routine triggering issue

$
0
0

HI Experts,

 

 

I have created a requirement routine to stop triggering PO output for output types ZU01 and ZSRM .

but the issue is Requirement routine is triggering for all output types please suggest me how to limit to particular output types?

 

 

Regards,

 

Vinod n.


Supported attachment formats for PR/PO under "Services for Objects"

$
0
0

Hello All,

 

Can some one help me how to find all supported attachment formats for PR/PO under "Services for Objects"

E.g., .TXT,.PDF,.JPG.....

 

I need the list of all formats supported..

 

 

Regards,

Deepika A

Issues With SLNET Log Off

$
0
0

Hi all,

We have more RF  terminals taht work with SAP console.

There is an issue with the "log off" function. Initially when i boot up the handheld device,it takes us to the log on menu.Once we log off the Device,it takes us to the sapconsole prompt.

I need to go back to the main log on menu , once i log off. Is this an ABAP programming issue or does it need additional configuration from the SAPconsole/SLNET ?

 

Thanks

 

Enrico.

How to read a .ZIP file available in the SAP application server

$
0
0


Hi All,

 

I went through some of the threads related to reading .zip files at the application server and tried doing the same through ABAP code but it was futile.

I can see the .zip file at the said path in the application server.This .zip file is suppose to contain .txt format files.

 

Following is my piece of code :

 

     DATA file_name TYPE string.
     DATA zipped_data TYPE xstring.
     DATA unzipped_data TYPE xstring.
     DATA text_data TYPE string.

     DATA zip TYPE REF TO cl_abap_zip.

   OPEN DATASET file_name  FOR INPUT IN BINARY MODE FILTER 'uncompress'.

   READ DATASET file_name INTO zipped_data.

 

     CREATE OBJECT zip.
      zip->load( zipped_data ).
      CALL METHOD zip->GET
        EXPORTING
*          NAME                    = zipped_data
          INDEX                   = lv_index
        IMPORTING
          CONTENT                 = unzipped_data
        EXCEPTIONS
          ZIP_INDEX_ERROR         = 1
          ZIP_DECOMPRESSION_ERROR = 2
          others                  = 3.
      IF SY-SUBRC <> 0.
* Implement suitable error handling here
      ENDIF.

 

While I try to read the file into zipped_data i fetch nothing.

 

Please throw some light into this .

 

Quick help will be rewarded.

 

Regards

Pratibha

Open UTF-8 file in non-unicode system

$
0
0

Hi,

 

my SAP system is non-unicode My code page is 1100 (based onISO 8859-1) : https://en.wikipedia.org/wiki/ISO/IEC_8859-1

 

I need to open a external file encoding in UTF8 and i would like just have alphabetics characters but also graphics characters (00C8, 00C9, 00CA...)

 

Thanks for your help

 

My test program :

 

DATA: lv_str TYPE string,

        im_filename type string VALUE '\\test.xhtml',

        lv_data type string.

 

   TRY.

 

       OPEN DATASET im_filename FOR INPUT in TEXT MODE ENCODING NON-UNICODE.

 

       DO.

 

         READ DATASET im_filename INTO lv_str.

 

         IF sy-subrc NE 0.

           EXIT.

         ELSE.

           WRITE: /, lv_str.

           CONCATENATE lv_data lv_str INTO lv_data.

         ENDIF.

 

       ENDDO.

 

       CLOSE DATASET im_filename.

 

     CATCH cx_sy_file_open.

 

   ENDTRY.

Data type issue

$
0
0

Hi ,

 

I have a field of type INT4 in a table. I am reading the table into work area. But that field is getting displayed as '#####" . How to avoid this.

 

 

rgds,

Khadeer.

FM which updates MSEG table from tcode MB1B

$
0
0

Dear Consultants,

 

I have a requirement where i need to update a custom field in MSEG table with a custom field value from MB1B. I have to perform an enhancement for this, but the problem is am not able to get the appropriate Function Module which updates MSEG table from MB1B. I performed debugging to find out where the updating happens but i couldn't get it. Can u people give your suggestions and guide me, points will be rewarded though. Thank you.

Error while extending idoc type MBGMCR03

$
0
0

Hi experts,

 

I want to add few fields in segment E1BP2017_GM_SERIALNUMBER. For this I have created a custom segment with the fields which are needed to add. Now when I proceed with extending idoc in WE30 for the idoc type MBGMCR03, I am getting an error "Action is not possible for generated idoc types". Please help.

 

Thanks & Regards,

Linto Jose.


Dot Net Connector using X509 Client Certificate

$
0
0

Hi,

 

I'm trying to connect to a system using the Doe Net Connector 3.0 and use a X509 Client Certificate for Authentication.

 

But I'm struggling with the parameters for the destination. When using the Base64-encoded Client Certificate as the X509Certificate parameter and leave the User parameter empty, like described here, I get the error "No credentials were supplied".

 

So I tried to find out how the JCO connector connects, there I found that to connect you should use $X509CERT$ as user parameter and base64 encoded certificate as password.

 

How do I connect to a SNC secured server with the Dot Net Connector and a Client Certificate?

 

This is how I tried it so far:

 

parms.Add(RfcConfigParameters.MessageServerHost, "Servername");
parms.Add(RfcConfigParameters.SystemNumber, "00");
parms.Add(RfcConfigParameters.SystemID, "System Name");
parms.Add(RfcConfigParameters.LogonGroup, "PUBLIC");
parms.Add(RfcConfigParameters.Client, "001");
parms.Add(RfcConfigParameters.SncMode, "1");
parms.Add(RfcConfigParameters.SncPartnerName, "p:CN=xxx, O=YYY, C=DE");
parms.Add(RfcConfigParameters.SncMyName, "p:CN=ZZZ, O=YYY, C=DE");
parms.Add(RfcConfigParameters.SncQOP, "3");
parms.Add(RfcConfigParameters.SncLibraryPath, "C:\\Program Files\\SAP\\FrontEnd\\SecureLogin\\lib\\sapcrypto.dll");
X509Certificate Cert = new X509Certificate();
Cert = X509Certificate.CreateFromCertFile("N:\\ClientCertificate.cer");
byte[] certData = Cert.GetRawCertData();
string X509CertificateString = Convert.ToBase64String(certData);
parms.Add(RfcConfigParameters.X509Certificate, X509CertificateString);

 

Thanks,

Oliver

Payroll fileformat changes

$
0
0

Hi Gurus,

I am to make a changes to the bank-file generated  by PC00_M25_FFOT.

Is this a customizing task or ABAP fix? Either way, where do I start?

 

Best regards

Balo

Enhancement for master data

$
0
0


Hello Experts,

 

There is a Custom field in ECC Material master which has values A and B. It also has a Custom Auth object  which has values A, B.

 

Requirement is when the value is A in Material data, Batches for those materials should be created accordingly. Do we need to write a user exit in Batch master program and have this auth object? If yes, what is the badi for batch master where we need to put this material auth object?

 

Thanks Experts in advance.

2lis_03_BF DSO enhancement for additional field

$
0
0

Hi,

 

     I have added two new additional fields(Schedule Line & Delivery Date) for 2LIS_03_BF data Source. Now when I am trying to execute the same data

 

Source from RSA3 no values are getting fetched. I have added these two fields in MC03BF0 and MCMSEG structures as well.

 

1. I have deleted data through T-Code: LBWG

2. LBWE  I have updated Job Control

3. I have scheduled back ground Job from OLI1BW to populate into "MC03BF0SETUP" table but no values are coming.


Even I have tried to execute the same from RSA3 but it is fetching 0 records.

 

Regards,

Avinash.

Add a popup screen when executing IW33(Service Order) and IW53(Notification)

$
0
0

Hello SCN,

 

I have a requirement whereby when a user opens a service order or a service notification, a pop-up screen is displayed with some specific info about the sold-to-party.  The pop-up should display in the PAI after executing the tcode IW33 or IW53.

 

I checked the package for both tcodes IW53(IWOC) and IW33(IWO2) but couldn't find a suitable exit in order to implement this feature.

 

Please help

 

Kind regards

Thyaga

Year Month Days Subtraction

$
0
0

Hello Experts,

 

I have requirement to subtract Year Month Days and get the result in same.

 

Ex: Year   Months   Days

        30       03          03

-       00       09          04

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

        ??       ??          ??

 

 

 

Please help me out with logic.

 

 

Thanks & Reagrds,

 

Prajyot D.

How to make the haeder as bold whiel sending email attachment via cl_bcs class

$
0
0

Hi  Experts,

 

Need your valuable advice regarding the following..

 

We are sending a mail with CSV attachm,ent via cl_bcs which will also break the attachment intos eparate csv when the count is 30,

Now They want the header / part of the header of CSV as bold ..

 

 

can you please help us regarding the same, currently we are using the following code piece to convert the whole lot to binary content

 

 

cl_bcs_convert

=>string_to_solix(
EXPORTING
iv_string
= lv_string
iv_codepage
= '4103'
iv_add_bom
= 'X'
IMPORTING

et_solix
= lv_binary_content
ev_size
= lv_size ).

 

lv_string content the header along with all  30 records  of CSV file, intial line will contain the header basically,

 

Thanks in advance for your valuaable advice..


Dynamic String value like 'word'

$
0
0

HI,

I am facing one problem.

In Samart form i am facing one problem, Some materials are not displaying correctly. They are displaying like

 

Material Code::  BM5x.696975 .

It is displaying like  5x.696975.

 

So, Before displaying  i had written  some  code like below.

 

 

SHIFT MATNR LEFT DELETING LEADING MATNR+0(2).

CONCATENATE  'BM'  MATNR INTO MATNR.


Now Everything is fine. But My problem is i had found that some material are also have the same problem,

I can mentioned like  'CM' 'PM'  'DM' for that materials.  My problem will be solved. But in feature may be other materials also give the same problem. So, i would like to use dynamic word.


Like below.


  MATNR2   = MATNR+0(2)

SHIFT MATNR LEFT DELETING LEADING MATNR+0(2).

CONCATENATE MATNR2  MATNR INTO MATNR.


I am using the above code. I am taking the first 2 characters of the material then i would like to concatenate to the material again.

But if i use above not working , Reasons i am not able to find out.


If i mentioned particularly like  'pm'  'dm' 'sm'  it is working fine.

but                                         pm    dm   sm not working.

i put the break point        it is getting the value like pm dm sm .


if i give the single quotation like  'pm'  'dm'  'sm'  working fine.

but i need dynamically.


If i use      ' ' ' '  'MATNR2' ' ' ' '  NOT WORKING.

            AND  ~'  MATNR2 ~' the output will come like


    ' BM'5x.696975  but i need  like BM5x.696975



My question is  the work 'pm',  i would like to get dynamically from the starting of the material two characters.

Need your Valuable suggestions.







Background Job: execute steps in sequence from another system

$
0
0

Dear Experts,

 

Let's say that I have a background job with 3 steps:

- first step is to run a program in ECC

- second step is to run the program in CRM

- third step is to run a program in ECC

 

How to do this, that the 2nd step in CRM will be triggered once the 1st step in ECC is finished, and so is the 3rd step?

 

I'm thinking of using RFC that ECC will call a RFC enabled FM in CRM which will execute the second step program. But I'm not sure if this is a good solution since if the program runs for a long time, then the connection will stay open and we might need to increase the RFC time out value.

 

 

 

Thank you,

Suwandi C.

How to post withholding tax using BAPI_ACC_INVOICE_RECEIPT_POST?

$
0
0

Hello Experts,

 

I'm using BAPI_ACC_INVOICE_RECEIPT_POST to simulate FB60 behavior. Now I need to post withholding tax. I don't see any table that takes withholding tax. Any suggestions how this can be done using this BAPI?

 

Thanks,

Amit

Handling Open cursor logic while STARTING NEW TASK

$
0
0

Dear Experts,

 

Since I have to process huge number of records by selecting the stock information from MARD I am using the OPEN cursor logic to fetch the data from MARD table in packets of 10 K records.

 

I have encapsulated by processing logic in a RFC enabled FM and do the parallel processing by means of STARTING NEW TASK addition to run the parallel threads so as to improve the performance of the program.

 

However the 'STARTING NEW TASK' issues a IMPLICIT COMMIT due to which the CURSOR opened earlier by OPEN CURSOR WITH HOLD is getting closed and when the program encounters the FETCH NEXT CURSOR in subsequent iteration the program dumps saying the CURSOR is already closed.

 

Kindly provide your valuable inputs on how can I keep the CURSOR open at the same time run the parallel threads as well.

 

Thanks.

 

 

 

 

Regards,

Srini

Table or FM to find customer material price condition types

$
0
0

Hi All ,

 

          I have the requirement selection screen includes sales area + customer + material + effective date . I need to get information if we enter all fileds values and date would be future date ( say 01.01.2016) .  now program should show what is the prices for the particular date( future date)   , customer, material and sales area . Example jan 01 2016 price condition value 100 dollars for the material and customer  , feb 01 2016 price condition value is 50 dollor  , so user wait till feb to create sales order because he has best deal in feb 01 2016.

 

I checked tables  which are not useful because linked with sales order .

 

KONH Conditions Header
KONP Conditions Item
KONV Conditions Transaction Data

 

FMs

 

PRICING_GET_CONDITIONS

PRICING_LOAD_CONDITION_TYPS

SD_COND_TYPES_OF_PRICING_PROC

WB2_SD_MAUNAL_PRICING_COND_GET

CONDITION_TYPS_FOR_PRICING

 

Thanks,

Ankal Reddy .

Viewing all 8768 articles
Browse latest View live