Quantcast
Channel: SCN : All Content - ABAP Connectivity
Viewing all 1442 articles
Browse latest View live

IDOC WPUBON Refrence Field does not appear in GL LINE ITEM

$
0
0

Dear Experts ,

we are using idoc wpubon to inbound sales processes from non sap pos i'm populating field ZUONR in segment  E1WPB06 with data but when checking in accounting document in payment method line (GL LINE ) item this field is not their when their is a customer line  this field appears in the customer line
how can i make this field appear in payment method line ??

thanks .


IDoc showing incorrect VBUND

$
0
0

The outbound IDoc shows faulty Trading Partner (VBUND) for all customers though on debugging we find it uses standard Program RBDSEDEB for selection of VBUND from KNA1 table and selection is correct but value of VBUND passed to IDoc is wrong. Issue?

BAPI_PO_CHANGE enter net price error is coming

$
0
0

hi,

i am using the BAPI_PO_CHANGE, even i enter the netprice for change the PO it is displaying enter net price error(06 E 215).

when i debug the BAPI the error is occuring in post_processing subroutine.

so please help me to solve this.

 

regards,

ramakrishna.

Email Sending Functionality for Different Business Process in Sap

$
0
0

Email Sending Functionality for Different Business Process in Sap

Nov, 2013

 

 

Introduction

Every Business Process in SAP Follow different communication types to communicate with its Business partners like Print and send via post, Fax, and Email (Internet).Several E-mail communications need to be sent to Vendors & Customers who are the business partners for the organization which contains several Business Processes like Payment Advice, Dunning forms and PO’s etc., with PDF and Excel as attachment, which is a very eco-friendly way. Presently many are using the process of taking a print out and sending it through the post. This Process has lot of paper wastage. So instead of this we can send a mail which saves lot of paper wastage .This process enables the Go green Initiative and reduces lot of manual effort. With the recent releases in SAP all the Business process are enhanced with Email sending functionality.

Introduction to Email Processes

Every Standard FI process like Dunning and Payment and collection advice has a default way of sending there notices to the customer or vendor by post. Sending a mail is not a standard SAP functionality; in order to achieve this nonstandard Functionality we have BTE.  This is an enhancement technique (Open FI) that was developed for Financial Accounting component. This functionality is primarily used in FI in the areas of dunning, Payment advice Customer and Vendor Statement etc. Each of them has their own Function modules which will not interfere with each other.

           Each of these has a BTE’s enabled to fill the FINNA-NACHA structure to determine whether the output should be sent as fax, print via post or email, i.e., if FINAA-NACHA = 1 - print via post and FINAA-NACHA = ‘I’ its email and if its ‘2’ FAX.

This Document contains how this mail functionality can be achieved by using the BTE’s for Different applications in FI.

1. Application Area: FI - Accounts payable and Accounts receivable – Dunning

     Application of the process BTE event '00001040' -

· This process BTE is useful during a dunning run when a dunning notice needs to be sent to the customer by the medium of an electronic form (EMAIL).
As a default property, the dunning notice gets printed and is sent to the customer either by scanning the copy or via 'POST'.

· This same dunning notice could be a very beneficial if it is sent by means of electronic form directly after the dunning has been carried out.

· So, to achieve this non-standard functionality we need to enhance the standard process.

      Transaction - FIBF -> Environment -> Info systems (Processes)

· Click on execute,

 

· Select the BTE 00001040 as it deals with the Output device/medium

Fig1.jpg

· Change the Already Present function module to Z function Module.

fig2.jpg

Now, technically the BTE is ready to work as we have registered the BTE.

As a functional aspect, the following things are needed to be taken care of.

· Standard communication option - to 'EMAIL' in the 'General' Tab in customer master 'XD02/01'.

fig3.jpg

· After configuring these basic steps, the BTE is complete to trigger for dunning run for this particular customer.

     Dunning Run

· SAPF150D2-This Program can be used to execute the Dunning form by giving the Run date and identification and the logic in the FM's can be checked by placing the debugger.

· Best way is to check in the debugger,

fig4.jpg

Ø  FINAA-NACHA - For Communication Medium (I- Internet, 1-Print Out, 2-Fax)

Ø  FINAA_INTAD – Email Address to send the PDF

 

Fig5.jpg

Ø Process the next step by confirming the 'Send to mail' dialog,

Ø If 'C_FINAA-INTAD' is left blank the system will pick from the customer master 'Clerks internet', else it will take from the value 'C_FINAA-INTAD'. This enables the PDF sending functionality which enables is standard process and the logic to send excel can be written in the above FM only. Also if you need to fill the Subject of Email use itcpo-tdtitle structure which of 50 characters. If we need to send the Body also Maintain the standard text as mentioned in the below screen shot.

fig6.jpg

NOTE: If we need to send many attachments other than PDF we have to write the code in the above FM call the common mail sending functionality. In this case first a mail will be sent with Excel or some other as attachment then the standard PDF functionality is called.

This is a very eco-friendly means of informing the customers for their over-due items.

 

 

2. Application Area: FI – Payment Advice and Collection Advice:

     Application of the process BTE event '00002040' –

This BTE is called in the standard include RFFORI06 as shown below.

fig7.png

· In the transaction FIBF Select the BTE 00002040 as it deals with the Output device/medium sample_process_00002040 will be assigned.

 

· Since this is not a standard functionality we need to enhance the FM so copy the

sample_process_00002040 into Zsample_process_00002040.

Logic in the FM

Check if customer or Vendor has Email Maintained in the Master Data. If it’s maintained then

· The structure c_finna included the internet address.

          We set the transmission medium to ‘I’ as below.

          c_finaa-nacha = 'I'.

          c_finaa-intad = l_smtp_addr(130). [The email Obtained from the master data]

·    Later the mail sending functionality can be called after the close_form as shown in the below screen shot or By OTF data and excel can be created using the tab_regup structure in the   form avis_schreiben.

3. Application Area: FI – Customer/Vendor Balance Confirmation:

     Application of the process BTE event '00002410' –

· This process BTE is useful during a Customer/Vendor Balance Confirmation form which needs to be sent to the Customer/Vendor by an electronic form (EMAIL). By default, the form is sent to the Customer/Vendor either by Fax or via 'POST'.

· But as an environmental aspect to avoid wastage of paper, the same Statement could be sent by means of electronic form directly after the Customer/Vendor Statement run has been carried out.

· So, to achieve this functionality we need to enhance the standard process.

     Transaction - FIBF -> Environment -> Info Systems (Processes)

· Click on Execute.

· Select BTE 00002410 as it deals with Determining the Output Device

fig8.png

· Click on Sample Function Module. The FM 'SAMPLE_PROCESS_00002410' is assigned. In order to include the mail sending functionality, Copy the Function Module into a Z Function Module and make the required changes to enable the mail sending functionality.

     Logic in the FM:

Check if the Customer or Vendor has Email Maintained in the Master Data. If it is maintained then

· The structure c_finna includes the internet address.

We set the transmission medium to ‘I’ as below.

          C_finaa-nacha = 'I'.

         C_finaa-intad = l_smtp_addr(130). [Email Obtained from the master data]

· Later the mail sending functionality can be called after the Close_form as shown in the below screen shot or By OTF data, and excel can be created using the Structure HBSIDH for Customer and HBSIKH for Vendor.

Fig9.png

4. How to achieve Mail Functionality Technically:

Create a Common Functionality for sending mail using classes

i) For sending the subject greater than 255 characters   

· At present using the FM SO_DOCUMENT_SEND_API1 has the capability of sending only 50 characters but using the below method of the class the subject more than 255 characters.

· So cl_bcs class is used for the below purpose.

· There is also any option of changing the sender ID in case the requirement is not    to use the           

· SAP master User ID using the cl_bcs  class.

· Create the below object of type cl_bcs  and call the method  set_message_subject        

          w_send_request     TYPE REF TO cl_bcs           VALUE IS INITIAL,      
     
CALL METHOD w_send_request->set_message_subject
       
EXPORTING
          ip_subject = subject.

ii) For Sending Multiple Attachments like PDF and Excel

· In case multiple attachments the below method add_attachment attachment can be used by looping on the attachments obtained to this function module.

     f_ATTACHMENTS    TYPE      RMPS_T_POST_CONTENT

      w_document       TYPE REF TO cl_document_bcs  VALUE IS INITIAL,

     
LOOP AT attachments INTO f_attachment.


        w_attachment_subject = f_attachment-subject.
        w_filesize = f_attachment-docsize.

· This Method will have the option to take input as method subject, filesize and
        w_document->add_attachment(
       
EXPORTING
        i_attachment_type    = f_attachment-doc_type
        i_attachment_subject = w_attachment_subject
        i_attachment_size    = w_filesize
        i_att_content_text   = f_attachment-cont_text[] ).

      ENDLOOP.

    iii) For Sending Email to multiple recipients like To, BCC and CC,

· The below Logic can applied to provide cc bcc and to as like multiple receivers. The method

add_recipient   has the option to give blind_copy, Copy and recipient.

w_recipient      TYPE REF TO if_recipient_bcs VALUE IS INITIAL,

· Loop at the multiple receivers

LOOP AT receivers INTO f_receivers.

          w_recipient_mail = f_receivers-receiver .

· The below method sets them mail ID of the Receiver.
          w_recipient = cl_
cam_address_bcs=>create_internet_address(
                         w_recipient_mail).

        w_send_request->add_recipient(
           
EXPORTING
            i_recipient = w_recipient
            i_express =
'X'
            i_copy = f_receivers-copy
            i_blind_copy = f_receivers-blind_copy).
ENDLOOP.

Value of EBELP Purchase Order Item in Output Type Routine

$
0
0

Hello,

 

I an facing a problem in retrieving the value of EBELP : Purchase Order Item, while I am executing an 'ME' Output Type.

[The Output Type is of ME Application]

When I execute the transaction MB0A for posting with reference to Purchase Order, the routine for Output Type gets invoked and I get the value of Purchase Order in the structure KOMPBME-EBELN but not its item EBELP. The parameter ID for EBELP is also not giving the value.

GET PARAMETER ID 'BSP' FIELD l_ebelp. => is empty.


This is kind of urgent. Could you please help?

 

 

Thank you,

Gayatri

Error message "EDI: Field SEGNAM in data record is default"

$
0
0

Hi all,

 

I am facing issue in Idoc creation. I am getting error message saying 'EDI: Field SEGNAM in data record is default' and so Idoc is not getting created.

 

Can anybody tell me how to resolve this. I checked in debugging mode and found that this error message is coming from a standard program.

 

Waiting for some good replies.

 

Thanks,

Archana

Performance reading ESR in SPROXY very slow (> 15 minutes)

$
0
0


Hi all,

 

In PI 7.31 we have uploaded the content of SAP_BBPCRM software component. From that moment the runtime of trx SPROXY is about 15 minutes before the ESR content is shown. It also doesn't cache this data, because the next time you'll start this transaction you have to wait 15 minutes again.

 

Any ideas how to speed this up?

 

Best Regards

 

Ron


Open PO to be proposed by sap and pass the value to 3 rd party software

$
0
0

Dear All,

 

 

We are using a third party software for bill processing. But it takes data from sap in the background through RFC and bapi's. Now our requirement is that when we provide input to this software lets say input the vendor master it should pop me out the PO's that are existing for that vendor. Now that was happening nicely. The moment we give the vendor master the software will pop pot a window giving all the PO's. The logic was easy as i have to just consider a table common to vendor and po. But now client wants the non sap platform software  to pop up the PO's for which invoice is pending. Surely we cannot use the concept of ME2l and all as we dont want it in SAP screen. We need the value to be proposed by sap which will be taken to the third party software .

 

How can we develop the logic that will be passed to the third party?


IDOC triggering with Even Linkage for IW32 & IW22

$
0
0

Hi All,

 

I have to trigger the IDOCs for message type IORDER whenever there is a change in Order (IW32) using the Event Linkage.

 

As there is no standard event in BUS2007 for change, i have delegated the BUS2007 with custom Event CHANGED with CHANGE method and few lines of code for IW32.

 

BEGIN_METHOD CHANGE CHANGING CONTAINER.

BREAK MANISH.

DATA: TCODE LIKE TSTC-TCODE.

*  SWC_GET_ELEMENT CONTAINER 'Transactioncode' TCODE.

   SWC_GET_ELEMENT CONTAINER 'TRANSACTIONCODE' TCODE.

   CALL TRANSACTION TCODE.

END_METHOD.


Now to trigger the Event on any change in IW32, I have configured the Event Linkage in SWE2 with following parameters:

 

Object Category: BO

Object Type: BUS2007

Event : Changed

Receiver type: 'test' (I assume it can be any text)

Receiver Call: Function Module

Receiver Function Module: ZTEST_FM (Template copy from SWE_TEMPLATE_REC_FB) No Code for now.

Destination of receiver: RFC created by Java developer with JCo path in RFC

Event Delivery: tRFC

Linked Activated : tick

 

I put my code in the RFC Enabled  Receiver Function Module "ZTEST_FM" to trigger the IDOC using the IDOC triggering Function module: "MASTER_IDOC_DISTRIBUTE" but I am not getting any IDOC in IW02.

 

When i put the External Breakpoint in custom FM, ZTEST_FM, it is not getting to it.

 

When i see the Event log in SWEL, i get the Trace Data as

 

Action : Receiver started correctly

RFC Status : The JCoServerFunctionHandlerFactory com.sap.conn.

 

 

I am not sure where i am wrong.

Need your Input to run this scenario.

 

 

Regards,

Manish

ABAP Web Service Monitor

$
0
0

Hi All,

 

We are using ABAP Web Services (SE37 RFC FMs) for outbound connection and Consumer PROXY (.net Web services) with Logical port for Incoming Interfaces.

 

We are NOT USING any Middle ware (this is client decision) as the interfaces are less.

 

I have worked with PI middleware where the monitoring can be done in SXI_MONITOR. But, in this case please help find/provide some information on how i can monitor both Incoming and Outgoing messages and RE-PROCESSING technique if supplied by standard SAP.

 

Thank you,

 

Gopi C.

updating wbs element relevant data.

$
0
0

HI abapers,

 

Am new to BAPI concept.I searched in sdn and came to know that  BAPI_BUS2054_CHANGE_MULTI can update WBS elements.

can anybody provide a piece of sample code to update wbs header and details like actual start date,controlling area using this bapi.

 

 

 

Thank You.

Send Cond_A idoc to partner type KU

$
0
0

Hi All,

 

I would like to send a Cond_A Idoc to a Customer via Partner type KU ( as defined in transaction WE20)

 

When I try to use transaction vk13 or FM MASTERIDOC_CREATE_COND_A i see only the option to specify a Partner of partner type LS (logical System).

 

Could you help me?

LSMW SEL_DATE filed Single - Character Flag

$
0
0

Dear gurus

 

i created a lsmw for T/code VK12 . I faced problem when the LSMW read till convert data.

 

In the VK12 , this Screen Field SEL_DATE will be my valid on date. I created the source filed Valid on date to match the mapping with SEL_DATE.

Here are my example of data:

SEL_DATE : 12022009

VALID_ON : 12022009 ( read from my text file)

 

the recording , mappings and source fields are created perfectly. Even read data display , the record able to shows out accordingly. But when comes to convert data , SEL_DATE return to me 1 Field Length.

Now i feel so puzzled, why this happen?

 

After some checking find out that this particular field SEL_DATE is a "SINGLE-CHARACTER FLAG"

 

expert out there, do you have any suggestions or guidance? i really need this field as to identify my record.

Without valid on date i can't call out the specific record and update it using LSMW

 

thanks

Wilson Low

How to extend a configurable material for a plant using BAPI_MATERIAL_SAVE_

$
0
0

Hi all,

I want to extend a material to a plant using BAPI BAPI_MATERIAL_SAVEDATA. I am able to achieve this for normal material but i am not able to do for Configurable material. In the MRP3 View there is a block titled "Plant-Specific configuration" in that i have to populate a material for field Configurable Material( MARC-STDPD ) and next to that will be two push buttons 1) Configure Variant and another is Configure Planning Variant, IN this i have to select Configure Variant button and i will get the set of characteristics of the configurable material where i have to enter values. The reason why i am not doing manually is there are lots of configurable materials which has to be extended to lots of plant.

In the Plantdata structure of the Save bapi i am not able to find any field to pass this value but if i extend manually and execute BAPI BAPI_MATERIAL_GET_ALL by passing the material number and the plant which i have extended, i am getting the value of the reference Configurable material in field "PS_CONF_MAT" of the plant data.

 

Could anybody tell me how to populate this field.

 

Thanks & regards,

Rajanidhi Rajasekeran

Data Upload Process slow through LSMW.

$
0
0

Hello Gurus,

 

We have used LSMW to upload huge amounts of pricing conditions with the help of the IDoc (~270000 COND_A IDocs).

whether there is any way on how to speed up this process ?


SAP Note 1575006 error in Quality System

$
0
0

Hello

 

I have implemented SAP Note 1575006 successfully in Dev and while importing the request in Quality i have getting the following error :

 

Generation of the users of the transported Includes

 

 

Program RSPO0025, Include RSPO0026: Syntax error in line 000001

Each ABAP program can contain only one 'REPORT' or'PROGRAM' or 'FUNCTION-POOL' statement.

Database COMMIT executed

 

 

Ended on 24.12.13 at 08:41:16

No. of programs  /Min/Avg/Max (sec): 2   0 0 0

 

 

Generation of programs and screens

End date and time : 20131224084116

Ended with return code:  ===> 8 <===

######################################

 

Can anyone suggest what needs to be done ?

 

Regards

Prasad.

SAP ECC connection to WebSphere Process Server 7.0.0.5 (over TCP/IP Connection @SM59)

$
0
0

Dear all,

 

We are  in the developement phase of a SAP ECC Implementation project that has to integrate with many interfaces using WebSphere Process Server 7.0.0.5 as a middleware.

 

 

We have configured a TCP/IP connections [IWEBSPHERE @SM59] for connecting SAP to WebSphere. The interfaces that executes Inbound process (BAPI's, IDOC, etc) works fine ; but when we are sending outbound interfaces like CREMAS, ACC_DOCUMENT, etc [IDOCs] ; we are facing that some IDOCs do not arrive successfully to WebSphere.

 

 

It is importante to mention that, as we are in the developement phase, we have more than one computer (included the WebSphere server) using the IWEBSPHERE's Connection. Also, we are using a tRFC Transfer Protocol:

 

1.png

 

PD: We are facing the same problem with IBM Infosphere DataStage Server 8.5 and MS Biztalk Server 2010.

 

 

Any suggestions,

 

 

Thank you in advance,

 

 

Best Regards,

Rodolfo

BAPI Line Item incremental issue

$
0
0

Hi All,

 

I am using BAPI_ACC_DOCUMENT_POST for posting. I have two GL Codes one for AGL internal tableount and one for Bank charges.

 

When im trying to fill the GL Data internal Table as below

 

*----------Deposit amt 1
   CLEAR wa_gldata.
   REFRESH : ist_gldata,ist_currency,ist_ardata.
   wa_gldata-itemno_acc   = 1.
   wa_gldata-gl_account   = '0000301001'.

   CONCATENATE 'Debit Entry for' g_financialtransaction INTO wa_gldata-item_text
                                                SEPARATED BY space.
   wa_gldata-comp_code    = '1000'.
   wa_gldata-profit_ctr = ls_generalcontractdata-portfolio.
   IF wa_gldata-profit_ctr IS INITIAL.
     wa_gldata-profit_ctr   = im_master-ibrch.
   ENDIF.

   wa_gldata-pstng_date   = sy-datum.
   wa_gldata-value_date   = sy-datum.
   MOVE im_master-insno TO wa_gldata-alloc_nmbr.
   APPEND wa_gldata TO ist_gldata.

  wa_gldata-itemno_acc   = 2.
   wa_gldata-gl_account   = '0000736021'.

   CONCATENATE 'Debit Entry for' g_financialtransaction INTO wa_gldata-item_text
                                                SEPARATED BY space.
   wa_gldata-comp_code    = '1000'.
   wa_gldata-profit_ctr = ls_generalcontractdata-portfolio.
   IF wa_gldata-profit_ctr IS INITIAL.
     wa_gldata-profit_ctr   = im_master-ibrch.
   ENDIF.
   wa_gldata-costcenter = im_master-spoint.
   wa_gldata-pstng_date   = sy-datum.
   wa_gldata-value_date   = sy-datum.
   MOVE im_master-insno TO wa_gldata-alloc_nmbr.
   APPEND wa_gldata TO ist_gldata.
  
*  wa_ardata-itemno_acc   = 3.
   wa_ardata-customer     = l_cust.
   wa_ardata-item_text    = 'Test'.
   wa_ardata-comp_code    = '1000'.
   wa_ardata-profit_ctr = ls_generalcontractdata-portfolio.
   IF wa_ardata-profit_ctr IS INITIAL.
     wa_ardata-profit_ctr   = im_master-ibrch.
   ENDIF.
   APPEND wa_ardata TO ist_ardata.

   CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'.


when i check IST_GLDATA the line item number is not changing .

It remains as 00000001 for all the 3 line items.and the document does not get posted.


Please provide inputs on this.

regards,

Deleting main EAN (MEAN-HPEAN = 'X') in retail material master data

$
0
0

Hello experts,

I have a customer (IS Retail) that realized, after data migration from legacy system, that many EAN including the main ones were obsolete or wrong. They asked me to clean all the EANs for a set of items, before deciding the new ones to be migrated.

I tried 'BAPI_MATERIAL_MAINTAINDATA_RT' that deletes all EAN but not the main one, and I can manage to remove the flag of main ean (MEAN-HPEAN = 'X'), but after that I cannot cancel the last EAN anyway, because in effect it's not correct, as SAP best practices suggest.

Please consider that all OSS notes available have been implemented, and that I have checked with all available threads and posts on the network with no answer.

Could please somebody help me?

thanks in advance

Chiara

Inbound Processing IDoc

$
0
0

Hi

 

I need to test and IDoc. I am triggering IDoc using WE19. Inbound Processing. I open EDIDC and try to add the control record fields. Its asking for a port, shouldn't it be tRFC? Do I need to create a port? I am sending it fromECC to ECC, same system, not another system, so do we need port and all?

 

What do I have to enter for Partner Name? It should be the system name followed by client, right?

 

Again what about Partner Profile? WE 20 should I add for Inbound parameters?

 

 

Regards

Viewing all 1442 articles
Browse latest View live


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