Quantcast
Channel: SCN: Message List
Viewing all 8789 articles
Browse latest View live

Re: How to extend material for new plant using LSMW

$
0
0

Hi Kinjal,

 

don't use LSMW, use the BAPI.

 

 

(I remove some detail you don't need, but your code could look like that : )

 

 

 

Fred

 

*   Extract MARA.

    SELECT SINGLE *
           INTO is_mara
           FROM mara
           WHERE matnr EQ itg_todo-matnr.

*   Extract MARC.

    SELECT SINGLE *
           INTO is_marc
           FROM marc
           WHERE matnr EQ itg_todo-matnr
           AND   werks EQ p_werks.

*   Extract MARD.

    SELECT SINGLE *
           INTO is_mard
           FROM mard
           WHERE matnr EQ itg_todo-matnr
           AND   werks EQ p_werks.

*   Extract MBEW

    SELECT SINGLE *
           INTO is_mbew
           FROM mbew
           WHERE matnr EQ itg_todo-matnr
           AND   bwkey EQ p_werks.

*   Extract MAKT

    SELECT SINGLE *
           INTO is_makt
           FROM makt
           WHERE matnr EQ itg_todo-matnr
           AND   spras EQ sy-langu.

*   Extract MQAL.

    SELECT *
           INTO TABLE it_qmat
           FROM qmat
           WHERE matnr EQ itg_todo-matnr
           AND   werks EQ p_werks.

 

 

*   Charge.
*   --> IS_HEAD

    MOVE : is_mara-matnr  TO is_head-material ,
           is_mara-mbrsh  TO is_head-ind_sector ,
           is_mara-mtart  TO is_head-matl_type.
    IF is_mara-PSTAT CA 'K'.
      MOVE : 'X'            TO is_head-basic_view.
    ENDIF.
    IF is_mara-PSTAT CA 'V'.
      MOVE : 'X'            TO is_head-sales_view.
    ENDIF.
    IF is_mara-PSTAT CA 'E' and p_achacp = 'X'.
      MOVE : 'X'            TO is_head-purchase_view.
    ENDIF.
    IF is_marc-PSTAT CA 'A' and p_prodcp = 'X'.
      MOVE : 'X'            TO is_head-WORK_SCHED_VIEW.
    ENDIF.
    IF is_marc-PSTAT CA 'D'.
      MOVE : 'X'            TO is_head-mrp_view.
    ENDIF.
    IF is_mara-PSTAT CA 'L'.
      MOVE : 'X'            TO is_head-storage_view.
    ENDIF.
    IF is_mara-PSTAT CA 'S'.
      MOVE : 'X'            TO is_head-warehouse_view.
    ENDIF.
    IF is_mara-PSTAT CA 'Q'.
      MOVE : 'X'            TO is_head-quality_view.
    ENDIF.
    IF is_mara-PSTAT CA 'B'.
      MOVE : 'X'            TO is_head-account_view.
    ENDIF.
    IF is_mara-PSTAT CA 'G'.
      MOVE : 'X'            TO is_head-cost_view.
    ENDIF.

*   --> IT_DESC

    MOVE : is_makt-spras  TO it_desc-langu ,
           is_makt-maktx  TO it_desc-matl_desc.
    APPEND it_desc.

   MOVE : itg_todo-werks TO is_marc1-plant ,

           is_marc-stawn  TO is_marc1-comm_code ,

           is_marc-dismm  TO is_marc1-mrp_type ,

           is_marc-dispo  TO is_marc1-mrp_ctrler ,

           is_marc-plifz  TO is_marc1-plnd_delry ,

           is_marc-disls  TO is_marc1-lotsizekey ,

           is_marc-beskz  TO is_marc1-proc_type ,

           is_marc-SOBSL  TO is_marc1-SPPROCTYPE,

           is_marc-EISBE  TO is_marc1-SAFETY_STK,

           is_marc-sbdkz  TO is_marc1-dep_req_id ,

           is_marc-altsl  TO is_marc1-alt_bom_id ,

           is_marc-fhori  TO is_marc1-sm_key ,

           is_marc-ssqss  TO is_marc1-ctrl_key ,

           is_marc-ladgr  TO is_marc1-loadinggrp ,

           is_marc-xchpf  TO is_marc1-batch_mgmt ,

           is_marc-mtvfp  TO is_marc1-availcheck ,

           is_marc-mtver  TO is_marc1-expimpgrp ,

           is_marc-losgr  TO is_marc1-lot_size ,

           is_marc-lgpro  TO is_marc1-iss_st_loc ,

           is_marc-disgr  TO is_marc1-mrp_group ,

           is_marc-qzgtp  TO is_marc1-cert_type ,

           is_marc-awsls  TO is_marc1-variance_key ,

           is_marc-strgr  TO is_marc1-plan_strgp ,

           is_marc-lgfsb  TO is_marc1-sloc_exprc ,

           is_marc-kzech  TO is_marc1-batchentry,

           is_marc-FEVOR  TO is_marc1-PRODUCTION_SCHEDULER,

           is_marc-DZEIT  TO is_marc1-INHSEPRODT,

           is_marc-FRTME  TO is_marc1-PROD_UNIT,

           is_marc-SFCPF  TO is_marc1-PRODPROF ,

           is_marc-stawn  TO is_marc1-COMM_CODE ,

           is_marc-EXPME  TO is_marc1-COMM_CO_UN,

           is_marc-KAUTB  TO is_marc1-auto_p_ord,

           is_marc-MAXLZ  TO is_marc1-STGEPERIOD,

           is_marc-LZEIH  TO is_marc1-STGE_PD_UN

            .

 

*   --> IS_MARCX

    MOVE : itg_todo-werks TO is_marcx-plant ,
           'X'            TO is_marcx-pur_group ,
           'X'            TO is_marcx-mrp_type ,
           'X'            TO is_marcx-mrp_ctrler ,
           'X'            TO is_marcx-plnd_delry ,
           'X'            TO is_marcx-lotsizekey ,
           'X'            TO is_marcx-proc_type ,
           'X'            TO is_marcx-SPPROCTYPE,
           'X'            TO is_marcx-SAFETY_STK,
           'X'            TO is_marcx-dep_req_id ,
           'X'            TO is_marcx-alt_bom_id ,
           'X'            TO is_marcx-sm_key ,
           'X'            TO is_marcx-ctrl_key ,
           'X'            TO is_marcx-loadinggrp ,
           'X'            TO is_marcx-batch_mgmt ,
           'X'            TO is_marcx-availcheck ,
           'X'            TO is_marcx-expimpgrp ,
           'X'            TO is_marcx-lot_size ,
           'X'            TO is_marcx-iss_st_loc ,
           'X'            TO is_marcx-mrp_group ,
           'X'            TO is_marcx-cert_type ,
           'X'            TO is_marcx-variance_key ,
           'X'            TO is_marcx-plan_strgp ,
           'X'            TO is_marcx-sloc_exprc ,
           'X'            TO is_marcx-batchentry ,
           'X'            TO is_marcx-profit_ctr ,
           'X'            TO is_marcx-PRODUCTION_SCHEDULER,
           'X'            TO is_marcx-INHSEPRODT,
           'X'            TO is_marcx-PROD_UNIT,
           'X'            TO is_marcx-PRODPROF ,
           'X'            TO is_marcx-COMM_CODE ,
           'X'            TO is_marcx-COMM_CO_UN,
           'X'            TO is_marcx-auto_p_ord,
           'X'            TO is_marcx-STGEPERIOD,
           'X'            TO is_marcx-STGE_PD_UN .

*   --> IS_MBEW

    MOVE : itg_todo-werks TO is_mbew1-val_area ,
           is_mbew-kosgr  TO is_mbew1-overhead_grp ,
           is_mbew-vprsv  TO is_mbew1-price_ctrl ,
           is_mbew-stprs  TO is_mbew1-std_price ,
           is_mbew-peinh  TO is_mbew1-price_unit ,
           is_mbew-bklas  TO is_mbew1-val_class .
    if NOT p_pmp IS INITIAL.
      MOVE : is_mbew-VERPR  TO is_mbew1-MOVING_PR,
             'X'            TO is_mbewx-MOVING_PR    .
    endif.

*   --> IS_MBEWX

    MOVE : itg_todo-werks TO is_mbewx-val_area ,
           'X'            TO is_mbewx-price_ctrl ,
           'X'            TO is_mbewx-std_price ,
           'X'            TO is_mbewx-price_unit ,
           'X'            TO is_mbewx-val_class ,
           'X'            TO is_mbewx-overhead_grp .

*   --> IS_MARD

    if NOT is_head-storage_view is INITIAL.
      MOVE : itg_todo-werks TO is_mard1-plant ,
             is_mard-lgort  TO is_mard1-stge_loc.

*   --> IS_MARDX

      MOVE : itg_todo-werks TO is_mardx-plant ,
             is_mard-lgort  TO is_mardx-stge_loc.
    endif.

 

 

*   Appels de la BAPI.

    CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
      EXPORTING
        headdata             = is_head
        clientdata           = is_mara1
        clientdatax          = is_marax
        plantdata            = is_marc1
        plantdatax           = is_marcx
        valuationdata        = is_mbew1
        valuationdatax       = is_mbewx
        storagelocationdata  = is_mard1
        storagelocationdatax = is_mardx
      IMPORTING
        return               = is_return
      TABLES
        materialdescription  = it_desc.

 

 

*   Edition.

    SKIP 1.
    WRITE : itg_todo-matnr COLOR 4 ,
            p_werks        COLOR 4 ,
            ' ---> ' ,
            itg_todo-werks COLOR 5 .
    PERFORM p_edition_erreur USING is_return.


SAP Business One Batch Report

$
0
0

Hello all,

 

I have a problem

 

In SAP Business One client, when you go to Goods Receipt PO and select a document that has batch managed items, and click on Print Preview, 2 reports appear.

 

The first report is for the Goods Receipt PO document, and the second is the Batch Report for current document.


I created a new report using Crystal Reports for document entries with items managed by batch and set it as default, but when you open the print preview, the report asks for DocKey@ parameter.

 

How can I solve this?

Como proteger los documentos Anexos?

$
0
0

Cordial Saludo:

 

Con esto quiero saber como proteger los documentos anexos, para que los usuarios en el momento de grabar un documento anexo, no puedan borrar por error un documento de la carpeta de anexos.

 

Estaba pensando en como poder ocultar los documentos anexos que ya tengo almacenados en las carpetas predefinidas.

 

A espera de sus aportes.

 

 

Mil Gracias.

Re: SUP - AWS - LOCAL SAP

$
0
0

Relay Server is a component which resides between a firewall and outside world preferably in the DMZ zone to keep the data traffic secure.

 

When a device wants to make communication to the SUP Server you have to use either of the two approaches,

 

1. SUP Server on public ip which you have in the current setup

2. Using a relay server and use relay server outbound enabler in your SUP Server to connect to the SUP Server.

 

Since in your scenario theSAP System is on your local machine, if you install the SUP Server also on the same machine both will come in the same network. Then you can use the sybase hosted relay server and make outbound enabler in your Sybase control center so what will happen is your device will call the relayserver ip instead of the SUP Server address something like relayserver.sybase.com

in your connection properties you will also use Farm ID's.

 

The relay server will match to the farm you have defined in the SCC and then you can communicate with the SUP system and then SUP will pull information from your SAP system.

 

Hope this helps,

 

Thanks,

Re: FM BAPI_ACC_DOCUMENT_POST

$
0
0

I am passing 10 in both debit and credit entries.

Any other combination - ( '00' and '00' ) or ( '00' and '10')  or ( '10 and '00') is giving error while posting.

 

CLEAR lwa_currency.
     lwa_currency-itemno_acc = 1.
     lwa_currency-curr_type = '10'.
     lwa_currency-currency = gwa_first_entry-pswsl.
     lwa_currency-amt_doccur = lwa_currency-amt_base = gwa_first_entry-pswbt.
       lwa_currency-exch_rate = gwa_first_entry-kursk.
     APPEND lwa_currency TO lt_currency.


CLEAR lwa_currency.
     lwa_currency-itemno_acc = 2.
     lwa_currency-curr_type = '10'.
     lwa_currency-currency = gwa_second_entry-pswsl.
     lwa_currency-amt_doccur = lwa_currency-amt_base = gwa_second_entry-pswbt.
       lwa_currency-exch_rate = gwa_second_entry-kursk.
     APPEND lwa_currency TO lt_currency.

 

This is my currencyamount table filling.

Are there any more fields/flags to be filled up?    

Re: How to Configure Status Change Description in Appraisal Document

$
0
0

First Case:

 

Choose "Basic Settings" by right clicking on "Category Group / Category / Template" within the "Appraisal Catalog".

001-Catalog.jpg

Choose "Pushbutton (Status Flow)" folder from "Dialog Structure" within the settings.

 

002-Pushbuttons.JPG

Change the text of the button you want to modify and save.

 

Second Case:

 

You could control the display of appraisal templates in different transaction through authorization. To do so,

 

1) create roles and specify the templates to be seen by specific group of people.

003-Auth.jpg

 

2) Assign the roles to your users.

One or more maintenance items do not have packages assigned to them yet

$
0
0

Hi Friends,

 

i have created a general task list without maintaining strategy. when i try to save the task list i get the following information message.

 

One or more maintenance items do not have packages assigned to them yet

 

Message no. IW478

 

Diagnosis

 

The task list contains one or more maintenance items that do not have a
package assigned to them.

 

When i have not maintained any strategy, system should not ask about packages.

 

Is this normal behaviuor?

 

Thanks,

Anand

Re: Wanna get a mail in my mailbox whenever workflow is executed?


Re: Serial No not reflecting in MB58

$
0
0

Hi john,

MB58 Displays Consignment and Returnable Packaging Stocks at Customer may be in that particular plant .

report would generates a list of the following special stocks at the customer's site.

  1. Consignment stock at customer's site
  2. Stocks of Returnable Package at Customer SIte

It will not display the serial number of the above stocks...

 

Regards,

Satyajit.

Re: STO sloc to sloc with different Plant

$
0
0

Hello Sarah,

 

As per the system message "it no longer able to determine the shipping point" tmentioned by you, it looks like some configuration / assignment is missing related to Shipping point of the plant. Please cross check the configuration assignments in SPRO.

 

Regards,

Pavan

Re: Crystal Viewer Events

$
0
0

There is no event that would tell you when a report finished being loaded. However, a long time ago, just for kicks I wrote a little app to time the loading (code below). Perhaps modifying the code will be the way to go. E.g.; rather than calculating the time diff, handle the graphic(?). Or, are you asking; is there a way to know when a report is done processing?

 

 

private void button_View_Click(object sender, System.EventArgs e)
  {
   System.DateTime startTime, endTime;
   System.TimeSpan diffTime;

   if(crReportDocument != null)
   {
    crReportDocument.Close();
    crReportDocument.Dispose();
    crReportDocument = null;
   }

   // reseting the display text back to zeros
   this.textBox_Start.Text = "0";
   this.textBox_End.Text = "0";
   this.textBox_Diff.Text = "0";

   // instantiate a new ReportDocument object
   crReportDocument = new ReportDocument();

   // mark the time before we Load the report from disk
            startTime = System.DateTime.Now;
   this.textBox_Start.Text = startTime.TimeOfDay.ToString();
  
  
   if (this.textBox_Filename.Text.Length<1)
    return;

   crReportDocument.Load(this.textBox_Filename.Text, CrystalDecisions.Shared.OpenReportMethod.OpenReportByDefault);
           
   // mark the time after the report was successfully loaded
   endTime = System.DateTime.Now;
   this.textBox_End.Text = endTime.TimeOfDay.ToString();

  

   // calculate the time difference, and display the time in TotalMilliseconds
   diffTime = endTime.Subtract(startTime);
   this.textBox_Diff.Text = diffTime.TotalMilliseconds.ToString();
  
  }

 

 

 

- Ludek

Re: CRRuntime_32bit_13_0_4.msi - commonobjmodel.dll failed to register in Windows 2008 R2 Standard 64bit

$
0
0

Enter 'crystal 1904' into the search box at the top right of this page. There is a number of KBAs that will come up. See if any of those leads you to a solution.

 

 

 

- Ludek

Re: WebIntelligenceProcessingServer - initializing all time

$
0
0

hi Benjamin

I did as you said and new webi server is working

 

but I faced strange problem which is connect with this issue - every 3 minutes some process is executing and caused error of my sql server. This error - '

<[Microsoft][SQL Server Native Client 10.0][SQL Server]There is insufficient system memory in resource pool 'default' to run this query.>.' I thought that it's a problem of sql server but I stopped all services in BO 4.0 and the error disapear, when I turn on - this problem occured again.

Is it posiible that webi processes caused this error?

 

Simone - I will trace as you said and back with result

Re: Created a variable by comparing two columns --- getting #error

$
0
0

Hi Jyothirmayee,

 

Below is the sample data...And yes baseresult and result are both strings!

 

Visit NameResultBase ResultGrade Shift
Baseline4141#error
Baseline5858#error
Day 24341#error
Day 25558#error

 

 

 

Thanks,

Ashley

Re: How to code not = here

$
0
0

whileprintingrecords;

global numbervar my_amount;

 

If not({AEMPPF02.ODPRLC} in[“BNS”,”CCP”,”CIQ”])

my_amount:= my_amount + ({AEMPPF02.AMOUNT}


Re: Adding javascript dynamically to ui 5 app not loading before view called

$
0
0

Hi Arvind,

 

have you considered using the ajax functions that come with the JQuery framework to do this?

 

For example, the jQuery.getScript function loads a JavaScript file from the server and then executes it.

 

Cheers

Graham Robbo

Transporting assignments of classes

$
0
0

Hello,

 

We have created using classes, a hierarchy which is assigned to Materials in the classification tab.  A class is assigned to another class as a superior or subordinate class using CL22n or CL24n.

 

We know that Classes can be transported via ALE using CLSMAS. Is there any way to transport using ALE or otherwise, the assignments of a class ?

Re: History_Preserving Error with Data Types

Re: Oracle 10g to 11g and Windows Operating System Upgrades 2003 to 2008 R2

$
0
0

Hi Liz,

 

I agree with both, you and Markus. However if you follow system copy method then you have an advantage of upgrading the database from 10g to 11g in one go (less downtime for current/'source' system, too) along with the 'clean' data move advantage, as Markus suggested.

 

You may like to try inplace windows upgrade for one system first (normally sandbox) and see if everything is good. I see this in-place upgrade note for the first time.

 

Thanks

Dev

Re: Error while performing Oracle back up using Brtools

$
0
0

If you can update us all about what solution/fix you followed then it would help everybody else who might face the similar problem in future.

 

Thanks

Dev

Viewing all 8789 articles
Browse latest View live


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